What is this?
This is a bot that monitors chats in which users sequentially 'increment' messages like 'AAAAA', and 'AAAAB' for fun. It will inform people if they're wrong.
Why?
We also have a counting chat that's bot enforced. This chat spun up as a joke, but I wanted to learn the Python bot framework. Seemed fun.
You need a life
Yeah, probably.
Overview
We use the Python Telegram Bot Framework for API access.
The validation of the sequence itself takes place in the AlphaSequence
class.
The validation of the message format takes place in the validate()
method.
Config filename is config.ini
and the format should be:
[DEFAULT]
BOT_DEBUG_CHAT_ID = -999999999
LETTERS_META_CHAT = -999999998
LETTERS_MAIN_CHAT = -999999997
Eventually, we'll store things like insults in there, too