-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
69 lines (63 loc) · 2.25 KB
/
config.example.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Rename this file to config.yaml
accounts:
- email: [email protected]
pass: TonMotDePasse
freq: # number of seconds between each refresh
grades: 30
presence: 5
promotions: 120
error: 120
hooks:
- triggers:
- type: presence
events:
# - "*" # all the events below
- opened # when teacher opened presence
- closed # when teacher closed presence
# - student:ok # when student validated his presence
# - student:absent # when student did not validate his presence / is set absent, triggered at the end of the presence
# - course:started # when the course started
# - course:ended # when the course ended
group_prefix: ESILV-
- type: grades # experimental
events:
- grade:created # when an exam is added
- grade:set # when a grade is available
- grade:updated # when a grade is changed
- grade:rattrapage:set # when a rattrapage grade is available
min_update_delta: 1 # only send grade:updated events when abs(new-old)>=delta
- type: promotions
events:
- created
skip_alumni_events: true
mode: DiscordWebHookV1
url: https://discordapp.com/api/webhooks/...
- triggers:
- type: grades
events: ["*"]
hidden_fields: ['units', 'subjects', 'grades']
show_minor_updates: true
mode: DiscordWebHookV1
url: https://discordapp.com/api/webhooks/...
- triggers:
- type: grades
events: ["*"]
hidden_fields: ['units', 'subjects', 'grades']
show_minor_updates: true
mode: TelegramBotV1
telegram:
chat_id: -1232423423 # your chat id
token: 12332423423:ARFZAEHFDSZFSDFHSDOIHFSDOFHZSDE # your bot token
# - email: [email protected]
# pass: "MotDePasseCompte2"
# freq:
# grades: 30
# presence: 5
# error: 120
# hooks: []
# Don't touch these unless you know what you are doing
log_level: INFO
cookies_cache: data/cookies_{id}.cache
grades_cache: data/grades_{id}.json
promotions_cache: data/promotions_{id}.json
timezone: Europe/Paris