From bf101bdbf099aacf13a85a7ba33c676f31f95847 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 4 Apr 2025 03:26:28 +0000 Subject: [PATCH] add run code --- bot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot.py b/bot.py index 14a37f8..561e47e 100644 --- a/bot.py +++ b/bot.py @@ -164,5 +164,12 @@ class IRCBot(): self.send("#tildetown", f"i hear activity in {channel}...") self.set_time(channel, now) self.config["counts"][channel] = 0 + +if __name__ == "__main__": + bot = IRCBot() + try: + bot.command_loop() + except KeyboardInterrupt: + exit()