add run code

This commit is contained in:
= 2025-04-04 03:26:28 +00:00
parent a1d10ff21e
commit bf101bdbf0

7
bot.py
View File

@ -164,5 +164,12 @@ class IRCBot():
self.send("#tildetown", f"i hear activity in {channel}...") self.send("#tildetown", f"i hear activity in {channel}...")
self.set_time(channel, now) self.set_time(channel, now)
self.config["counts"][channel] = 0 self.config["counts"][channel] = 0
if __name__ == "__main__":
bot = IRCBot()
try:
bot.command_loop()
except KeyboardInterrupt:
exit()