This commit is contained in:
= 2025-04-04 04:08:31 +00:00
parent b9fdc71388
commit 37b517edf5

5
bot.py

@ -163,8 +163,9 @@ class IRCBot():
continue
channel_time = self.check_time(channel)
now = time()
if now - channel_time > timeout and self.counter(channel) < messages_within_timeout:
self.send("#bots", 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()