i gotta try this okay
This commit is contained in:
parent
7d45d39e35
commit
ea79b23b28
2
bot.py
2
bot.py
@ -171,6 +171,8 @@ class IRCBot():
|
|||||||
if delta > timeout and count < messages_within_timeout:
|
if delta > timeout and count < messages_within_timeout:
|
||||||
self.reset_count(channel)
|
self.reset_count(channel)
|
||||||
self.send("#bots", f"i hear activity in {channel}...")
|
self.send("#bots", f"i hear activity in {channel}...")
|
||||||
|
elif count < messages_within_timeout and delta > timeout:
|
||||||
|
self.reset_count
|
||||||
self.set_time(channel, now)
|
self.set_time(channel, now)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user