Skip to content

aipyth/schedulebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schedule Bot

Telegram Bot to notify user about upcoming schedule events.

Current usage

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?

  1. Fork the repository
  2. Read about yaml syntax
  3. Open conf/schedule.yml file
    1. Add the name of your group to groups list
    2. Create new file with the name of your group {group name}.yml where your schedule will be stored
    3. Add two keys to the last one: week1 and week2
    4. Add days of week from monday to saturday to each of these weeks
    5. Now each day is an array of dictionaries with the name of the course and it's keys and values are
      1. type - the type of class at the time
      2. elective - boolean respesenting whether this course is elective or not
    6. The first element in the last array represents first class, second -- second and so on...
    7. If you have an opening (empty class) at the time just write Window instead of specific dictionary
    8. Links to specific class may be listed in conf/{group name}.links.yml. The following structure must be used:
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

About

Telegram Bot to notify user about upcoming schedule events.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •