Browse Source

rate limit pour opensuze

environments/production/deployments/29
Hugo LEVY-FALK 7 years ago
parent
commit
d7c9b60144
  1. 1
      bots.yaml
  2. 3
      klafirc/bot.py

1
bots.yaml

@ -101,6 +101,7 @@ bots:
- "Tu reprends de la soupe ?"
on_match:
"(Y|y|([Ii]l (n')?y)) en a plus" : "Y en a plus ? J'ai tout bu ?"
min_time: 3 # in seconds
channels:
- server: irc.rezometz.org

3
klafirc/bot.py

@ -87,7 +87,8 @@ class Bot:
}
result = []
for m in self.reactions.keys():
if m.search(message):
search = m.search(message)
if search:
r = self.reactions[m]
if callable(r):
r = r(self, username, channel, message)

Loading…
Cancel
Save