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()