From 01bd0ea00bbe637b97ae6033389704451da42a74 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 4 Apr 2025 03:43:45 +0000 Subject: [PATCH] fix faulty logic --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index c33e9f6..1a3f1eb 100644 --- a/bot.py +++ b/bot.py @@ -166,9 +166,9 @@ class IRCBot(): 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) - self.config["counts"][channel] = 0 + if __name__ == "__main__": bot = IRCBot()