-
-
Notifications
You must be signed in to change notification settings - Fork 2
Lecture notifications
Since this bot is written for a Electrical engineering course discord Server, having reminders for each course is pretty handy.
Simply create a calendar on google or any other that lets you create calendars and save them in iCal format. To get the right results you have to format your entries correctly. Check here to see how to use the correct formatting. Once the calendar is created, copy the private iCal address to that calendar. In case you created your calendar with the Google-Calendar:
- Go to settings
- select your calendar
- scroll down to "Integrate calendar"
- copy "Secret address in iCal format"
Now all that is left to do, is to add that link to your config.json
{
"calendars": {
"YOUR_CALENDAR_NAME_HERE": "PATE_YOUR_LINK_HERE"
}
}To add multiple calendars, there is not much more to do. Simply copy your second iCal link, and add that to your config.json aswell:
{
"calendars": {
"FIRST_CALENDAR_NAME_HERE": "LINK_OF_YOUR_SECOND_CALENDAR",
"SECOND_CALENDAR_NAME_HERE": "LINK_OF_YOUR_SECOND_CALENDAR"
}
}The bot automatically loops through each calendar in that group, so add as many as you like. NOTE: The bot downloads the calendar each time it starts, so do not add an excessive amount of calendars when your internet can not handle the traffic
In order for the bot to display your lecture reminders correctly, some boundaries have to be set. The name of the events should be:
PROFESSOR_NAME - LECTURE_NAME
NOTE: It is important, that the professors name and lecture name are separated by a -.