-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathchanconfig.py
More file actions
85 lines (82 loc) · 1.68 KB
/
chanconfig.py
File metadata and controls
85 lines (82 loc) · 1.68 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from config import GIPHY_KEY, TWITTER_CONFIG
from ircbot.plugin import HelpPlugin
from plugins import (
Ascii,
Giphy,
Komoot,
LesRepublicains,
Poll,
React,
Reminder,
Space,
TechWednesday,
Topic,
Trump,
Twitter,
UrlShow,
Sudo
)
CHANS = {
"#urlab": [
Sudo(),
Ascii(),
Topic(),
Space(),
React(),
TechWednesday(),
Reminder(),
Twitter(TWITTER_CONFIG),
UrlShow(TWITTER_CONFIG),
Giphy(GIPHY_KEY),
Komoot(),
HelpPlugin(),
Poll(),
LesRepublicains(),
Trump(),
],
"#vincentdev": [
Sudo(),
Ascii(),
Topic(),
Space(),
React(),
TechWednesday(),
Reminder(),
Twitter(TWITTER_CONFIG),
UrlShow(TWITTER_CONFIG),
Giphy(GIPHY_KEY),
Komoot(),
HelpPlugin(),
Poll(),
LesRepublicains(),
Trump(),
],
"QUERY": [
TechWednesday(),
HelpPlugin(),
Trump(),
],
}
# Rate limit for incoming UrLab notifications in seconds
RATELIMIT = {
# Hal events
"bell": 120,
"passage": 3600,
"kitchen_move": 3600,
"doors_stairs": 900,
# Incubator activity stream
"Event.a créé": 900,
"Event.a édité": 900,
"Project.a créé": 900,
"Project.a édité": 900,
"Project.participe à": 900,
"Task.a ajouté la tâche": 3600,
"Task.a fini la tâche": 3600,
"Task.a ré-ajouté la tâche": 3600,
"wiki.revision": 300,
}
try:
from local_chanconfig import CHANS, RATELIMIT
except ImportError:
print("Cannot load local chan config; using gitted config")
pass