add run code
This commit is contained in:
parent
a1d10ff21e
commit
bf101bdbf0
7
bot.py
7
bot.py
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user