A bot used for grouping assignments and TODOs.
Based on python-telegram-bot
- /all: Display all the assignments.
- /add: Add an assignment. Arguments: /add [AssignmentName] [Date and time].
There are certain limitations to this command:
- There MUST BE NO SPACE in AssignmentName
- The date must be in format like MM-dd
- The time must be in format like hh:mm:ss
- /remove: Remove an assignment. Arguments: /remove [assignment_id]
- /stop: Stop the bot from sending daily alerts. There must be no assignments left to use this command.
Feel free to use the bot directly: follow @AssignmentsAlertBot
You can run the bot on your own server. There are two methods doing this.
- clone the repository on the server
git clone https://github.com/xxxqgg/Assignments-Alert-Bot.git
- Make a copy of
configurations-template.yaml
and name it toconfigurations.yaml
. Change the configurations accordingly. For example, a configuration would look like:TelegramBot: - name: AssignmentBot token: 1231231231:AAFxqx4reBnm2uR3ZPUqotBZJ7HYR1Pxsdg time_zone: Asia/Shanghai
- Install Docker and docker-compose on your server if not previously installed.
- Run via docker:
docker-compose up -d
- clone the repository on the server
git clone https://github.com/xxxqgg/Assignments-Alert-Bot.git
- Make a copy of
configurations-template.yaml
and name it toconfigurations.yaml
. Change the configurations accordingly. For example, a configuration would look like:TelegramBot: - name: AssignmentBot token: 1231231231:AAFxqx4reBnm2uR3ZPUqotBZJ7HYR1Pxsdg time_zone: Asia/Shanghai
- Install pip packages
pip install -r requirements.txt
- Run the bot
python3 src/main.py