more faulty logic
This commit is contained in:
parent
0b0e8c061a
commit
b3bff693dc
5
bot.py
5
bot.py
@ -163,9 +163,10 @@ class IRCBot():
|
||||
continue
|
||||
channel_time = self.check_time(channel)
|
||||
now = time()
|
||||
if self.counter(channel) < messages_within_timeout and now - channel_time > timeout:
|
||||
# self.send("#tildetown", f"i hear activity in {channel}...")
|
||||
if self.counter(channel) < messages_within_timeout:
|
||||
if now - channel_time > timeout:
|
||||
self.send("#bots", f"i hear activity in {channel}...")
|
||||
# self.send("#tildetown", f"i hear activity in {channel}...")
|
||||
self.config["counts"][channel] = 0
|
||||
self.write_config()
|
||||
self.set_time(channel, now)
|
||||
|
Loading…
x
Reference in New Issue
Block a user