From b3bff693dc99ebc147af4808271fdc58ee34e6eb Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 4 Apr 2025 04:01:30 +0000 Subject: [PATCH] more faulty logic --- bot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 567cad1..38d9608 100644 --- a/bot.py +++ b/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}...") - 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() self.set_time(channel, now)