Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 898 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 898 Bytes

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