Skip to content

valerialevenets/rude_bot

 
 

Repository files navigation

rude_bot

Karmabot for telegram chat @rude_chat Waterfall

Install

Use next environment variables:

  • RUDEBOT_TELEGRAM_TOKEN={YOUR_TOKEN} - telegram token

    (other variables is not necessarty and have default values)

  • RUDEBOT_FLOOD_TIMEOUT=10 - cooldown to allow +- karma per chat, default 30 seconds

  • RUDEBOT_DELETE_TIMEOUT=30 - time before bot messages being deleted

  • RUDEBOT_DATABASE_FILENAME=rudebot_db.json - stored database name

  • RUDEBOT_ALLOWED_CHATS=-10010101,-10000101010 - whitelist chats. If it empty or not added to envs, whitelist mode will be turned off.

Python: Add to system environment that variables.

Docker compose: create .env file and fill it with that variables.

Run

Docker compose

docker-compose up -d

Python

pip3 install -r requirements.txt
python main.py

About

Karmabot for telegram groups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Dockerfile 0.6%