HEIG-TS / heig-bot

Unofficial telegram bot for interaction with HEIG-VD GAPS website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calendar: Add entity selection

g-roch opened this issue · comments

Now /calendar command display user timetable.
Can add an args for select entity type ((default) self calendar, room, professor, lesson or other student calendar)

For get ICS for specific type, change the call of get_timetable_ics() and set type args to good value

Example :
/calendar [<date>] : self calendar
/calendar s[tudent] <name> [<date>] : calendar for student
/calendar r[oom] <name> [<date>] : calendar for room
/calendar p[rofessor] <name|abr> [<date>] : calendar for professor or
/calendar l[esson] <name> [<date>] : calendar for a course (ANA-1-A) or a branch (ANA ou ANA-1)