rate limit pour opensuze
This commit is contained in:
parent
32ce319891
commit
d7c9b60144
2 changed files with 3 additions and 1 deletions
|
@ -101,6 +101,7 @@ bots:
|
||||||
- "Tu reprends de la soupe ?"
|
- "Tu reprends de la soupe ?"
|
||||||
on_match:
|
on_match:
|
||||||
"(Y|y|([Ii]l (n')?y)) en a plus" : "Y en a plus ? J'ai tout bu ?"
|
"(Y|y|([Ii]l (n')?y)) en a plus" : "Y en a plus ? J'ai tout bu ?"
|
||||||
|
min_time: 3 # in seconds
|
||||||
|
|
||||||
channels:
|
channels:
|
||||||
- server: irc.rezometz.org
|
- server: irc.rezometz.org
|
||||||
|
|
|
@ -87,7 +87,8 @@ class Bot:
|
||||||
}
|
}
|
||||||
result = []
|
result = []
|
||||||
for m in self.reactions.keys():
|
for m in self.reactions.keys():
|
||||||
if m.search(message):
|
search = m.search(message)
|
||||||
|
if search:
|
||||||
r = self.reactions[m]
|
r = self.reactions[m]
|
||||||
if callable(r):
|
if callable(r):
|
||||||
r = r(self, username, channel, message)
|
r = r(self, username, channel, message)
|
||||||
|
|
Loading…
Reference in a new issue