From 37b517edf59863cce7b04d1fc9e22f0409dd3d8d Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 4 Apr 2025 04:08:31 +0000 Subject: [PATCH] look ma --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index be3de58..6d654b9 100644 --- a/bot.py +++ b/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()