Telegram Bot to notify user about upcoming schedule events.
Currently this bot is used in telegram as student's IPT schedule bot.
The bot sends all the users their classes one minute before the lesson. Also commands /today
, /tomorrow
, /week
, /nextweek
are available.
Feel free to create issues to offer new features and updates.
How to add the schedule of my group to the bot?
- Fork the repository
- Read about yaml syntax
- Open
conf/schedule.yml
file- Add the name of your group to
groups
list - Create new file with the name of your group
{group name}.yml
where your schedule will be stored - Add two keys to the last one:
week1
andweek2
- Add days of week from
monday
tosaturday
to each of these weeks - Now each day is an array of dictionaries with the name of the course and it's keys and values are
type
- the type of class at the timeelective
- boolean respesenting whether this course is elective or not
- The first element in the last array represents first class, second -- second and so on...
- If you have an opening (empty class) at the time just write
Window
instead of specific dictionary - Links to specific class may be listed in
conf/{group name}.links.yml
. The following structure must be used:
- Add the name of your group to
Class name:
Type of the class that was spec in type key in schedule: https://...
Another class name:
Type of the class that was spec in type key in schedule: https://...
Real example:
Risk Theory:
Lecture: https://...
Markov:
Lecture: https://...
And ecrypt this file using ansible-vault
ansible-vault encrypt conf/{group name}.links.yml
Add step for decryption this file in .github/workflows/deploy.yml