dang
This commit is contained in:
parent
dfdc811e24
commit
c478220bc2
2
bot.py
2
bot.py
@ -164,7 +164,7 @@ class IRCBot():
|
||||
channel_time = self.check_time(channel)
|
||||
now = time()
|
||||
count = self.counter(channel)
|
||||
if now - channel_time > timeout and count > messages_within_timeout:
|
||||
if now - channel_time > timeout and count < messages_within_timeout:
|
||||
self.config["counts"][channel] = 0
|
||||
self.write_config()
|
||||
self.send("#bots", f"i hear activity in {channel}...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user