Go to file
Michał Rudowicz 2d4bf992de Unit tests for banning 2024-06-13 21:28:13 +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 Minor improvements 2024-06-13 16:45:41 +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 Unit tests for banning 2024-06-13 21:28:13 +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