The project is a Telegram bot, which will generate a queue for exams/credits in our chat room and so on, to prevent discrimination on the first letter of the surname.
Just put my monster (@exam_queue_bot) in a group chat room and have fun.
/setlist
Name1
Name2
...
NameN
/generate
/show
/swap 1 2
/swap Petrov Ivanov
/swap 1 Ivanov
/swap Petrov 2
and so on
/move 1 2
/move Petrov Ivanov
/move 1 Ivanov
/move Petrov 2
To install all the required dependencies, use
pip install --upgrade -r requirements.txt
You will need to create a new bot and get a token for it. After that, the code can be run by
BOT_TOKEN=<token> DB_URL=<URL of your Redis database> DB_TOKEN=<password for your Redis database> python3 -m src
To run unit tests for this code, use
pytest
To launch type checking, use
mypy src