From b3dc85281293091b04a55f230e87c6701578cbc2 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 4 Apr 2025 03:51:05 +0000 Subject: [PATCH] fix faulty logic again --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 1a3f1eb..849e6b7 100644 --- a/bot.py +++ b/bot.py @@ -163,12 +163,11 @@ class IRCBot(): continue channel_time = self.check_time(channel) now = time() - 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("#bots", f"i hear activity in {channel}...") self.config["counts"][channel] = 0 self.set_time(channel, now) - if __name__ == "__main__": bot = IRCBot()