Giter VIP home page Giter VIP logo

randymbot's Introduction

@randymbot

@randymbot Telegram bot code

This is the code for the raffle Telegram bot I've built. Enjoy and feel free to reuse!

Installation and local launch

  1. Clone this repo: git clone https://github.com/backmeupplz/randymbot
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn install in the root folder
  5. Run yarn distribute

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Environment variables

  • TOKEN — Telegram bot token
  • USERNAME — Telegram bot username
  • MONGO— URL of the mongo database

Also, please, consider looking at .env.sample.

Continuous integration

Any commit pushed to master gets deployed to @randymbot via CI Ninja.

License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

randymbot's People

Contributors

backmeupplz avatar dependabot[bot] avatar drozdik92 avatar kutsaltotem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

randymbot's Issues

Language problems

Hello, i always set a language for randymbot(Turkish). It works well but when i started the raffle a moment later participate button text changes to English. I couldn't find a place to report this issue. Thank you

non members of a group

Hello, I like the bot so far, the only issue I've found is that non members of the group that randy is on, can participate, is there a way to limit the participants to only members?

error when trying to install

root@amd-3-11:~/randymbot# yarn install
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'

Pinning message problem

Hello,
After selection of winners by using the number command and then using the Randy command when I try to pin the message in the group it says not enough participant and does it get pinned and the raffle is ended.

Pinning.issue.mp4

Bug: unsubscribed winner of raffle

Hello.
It seems Bot have a bug.
If I set condition to check user subscribed to channel then bot check subscription only at time when user join to raffle.
But if user will unsubscribe after pressing Participate button then later when raffle is end then when bot will select winner it has no check condition and bot can select unsubscribed user.
So my suggestion to check that user in target channel when I send command to finish raffle.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.