A telegram bot for groups to assign a task to members in a round robin manner.
/add_task
- Create a new task/check_task
- Check next turn for an existing task/list_tasks
- List all active tasks in this chat/delete_task
- Delete an existing task and all its data/cancel
- Terminate an ongoing command/help
- To know what each command does
The bot will consider only explicit replies to continue the conversation.
- Python 3.7.2
- Create a virtual environment:
virtualenv venv && source venv/bin/activate
- Install requirements:
pip install -r requirements.txt
- Run tests:
pytest --junitxml test-results/pytests.xml --cov=. --cov-report xml
- Test summary:
test-results/pytests.xml
- Coverage report:
coverage.xml
- Create a test bot using BotFather on Telegram.
- Set secrets as environment variables by running the following script:
#!/bin/sh export RRT_TOKEN="<test-bot-token>" export RRT_PERSISTENCE_PREFIX="<path-and-prefix-for-chat-data-store"
- Start server:
python bot.py