Skip to content

valerialevenets/rude_bot

This branch is 117 commits behind awitwicki/rude_bot:main.

Folders and files

NameName
Last commit message
Last commit date
Sep 14, 2021
Aug 27, 2021
Sep 8, 2021
Sep 14, 2021
Nov 12, 2020
Aug 27, 2021
Sep 10, 2021
Sep 8, 2021
Sep 25, 2021
Nov 1, 2021
Apr 10, 2021
Apr 12, 2021
Sep 25, 2021
Nov 12, 2020
Jan 11, 2021

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%