fix faulty logic
This commit is contained in:
parent
08c67feb1b
commit
01bd0ea00b
4
bot.py
4
bot.py
@ -166,9 +166,9 @@ class IRCBot():
|
|||||||
if self.counter(channel) > messages_within_timeout and now - channel_time > timeout:
|
if self.counter(channel) > messages_within_timeout and now - channel_time > timeout:
|
||||||
# self.send("#tildetown", f"i hear activity in {channel}...")
|
# self.send("#tildetown", f"i hear activity in {channel}...")
|
||||||
self.send("#bots", f"i hear activity in {channel}...")
|
self.send("#bots", f"i hear activity in {channel}...")
|
||||||
|
self.config["counts"][channel] = 0
|
||||||
self.set_time(channel, now)
|
self.set_time(channel, now)
|
||||||
self.config["counts"][channel] = 0
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
bot = IRCBot()
|
bot = IRCBot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user