Go to file
Michał Rudowicz 51f34324fb Fix typo 2024-06-12 06:50:03 +02:00
.gitignore Added information about unjust bans in README 2018-07-24 23:05:40 +02:00
LICENSE Added LICENSE (GPLv3) 2024-06-11 21:59:14 +02:00
README.md Ban on incoming messages, bump python-telegram-bot 2024-06-11 21:52:37 +02:00
autobanbot.py Fix typo 2024-06-12 06:50:03 +02:00
config.json.example Initial commit 2018-07-24 15:31:04 +02:00
requirements.txt Ban on incoming messages, bump python-telegram-bot 2024-06-11 21:52:37 +02:00
tests.py Little refactoring - got rid of static variables 2018-07-25 12:03:11 +02:00

README.md

AutoBanBot

If message matches configured regexes then bot bans the user from the channel and removes the message.

You're not a spammer but you got banned?

This is definitely a bug. File an issue on Pagure. Thank you!

Running

Before running the bot, configure the Telegram Bot API and regexes in config.json. An config.json.example file is provided with example values.

$ virtualenv -p python3 virtual
$ source virtual/bin/activate
$ pip install -r requirements.txt
$ ./autobanbot.py