bitbot-3.11-fork/modules/join.py

9 lines
210 B
Python
Raw Normal View History

2016-03-29 11:56:58 +00:00
class Module(object):
def __init__(self, bot, events):
events.on("received").on("numeric").on("001").hook(self.do_join)
2016-03-29 11:56:58 +00:00
def do_join(self, event):
event["server"].send_join("#bitbot")