-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js.example
52 lines (50 loc) · 2.37 KB
/
config.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
timezone: "Europe/Paris", // Your timezone, used for the cronjobs. (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
cron: "*/5 * * * *", // The cronjob that manage the tasks. (https://crontab.guru/)
notificationUserId: "user id", // Discord user id that will be notified for certain event (in general, it's the pronote account owner)
slashCommandGuildId: "slash command guild id", // The Discord guild id where the slash commands will be added.
channels: {
homework: "channel id for homework", // Discord channel id for the homeworks
moyenne: "channel id for moyenne", // Discord channel id for the averages updates
timetableChange: "channel id for timetable change", // Discord channel id for the timetable changes (missing teacher...)
timetable: "channel id for the timetable embed", // Discord Channel id for the live timetable embed
announcement: "channel id for announcements" // Discord Channel id for the announcements (like the end of school year)
},
colors: { // Bypass default color of a subject if you don't like it or if the color is confusing. The name must be the same as what you see in your timetable to work !
"subject name": "#customColor",
// "SCIENCES VIE & TERRE": "#38c219", // example
},
tasksConfig: [
{
name: "informEvent",
enabled: true,
options: {
endOfSchoolYear: true, // Enable the end of school year reminder
holidays: true, // Enable the holidays reminder
holidaysReminderBeforeStart: 1, // Number of days before the start of the holidays to send the reminder
pingOnHolidays: true, // Ping the user on the holidays reminder
}
},
{
name: "updateTimetable",
enabled: true,
options: {
pingOnTimetableChange: true, // Ping the user on a timetable change
}
},
{
name: "checkHomeWork",
enabled: true,
options: {
pingOnNewHomeWork: false, // Ping the user on a new homework
}
},
{
name: "updateMoyenne",
enabled: true,
options: {
pingOnMoyenneUpdate: true, // Ping the user on a new average
}
}
]
};