Go to file
Michał Rudowicz 284311e9d5 Allowlist of chats where the bot should work 2024-06-15 10:03:15 +02:00
fakes/telegram Not working tests, but at least a small step forward 2024-06-13 16:45:27 +02:00
.build.yml Run tests on CI 2024-06-13 07:38:41 +02:00
.gitignore Minor improvements 2024-06-13 16:45:41 +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 Allowlist of chats where the bot should work 2024-06-15 10:03:15 +02:00
config.json.example Allowlist of chats where the bot should work 2024-06-15 10:03:15 +02:00
requirements.txt Ban on incoming messages, bump python-telegram-bot 2024-06-11 21:52:37 +02:00
tests.py Allowlist of chats where the bot should work 2024-06-15 10:03:15 +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