bitbot-3.11-fork/modules/join.py
2016-03-29 12:56:58 +01:00

8 lines
188 B
Python

class Module(object):
def __init__(self, bot):
bot.events.on("received").on("numeric").on("001").hook(self.do_join)
def do_join(self, event):
event["server"].send_join("#bitbot")