bitbot-3.11-fork/modules/bot_channel.py

13 lines
377 B
Python
Raw Normal View History

class Module(object):
def __init__(self, bot, events, exports):
events.on("received").on("numeric").on("001").hook(self.do_join)
exports.add("serverset", {"setting": "bot-channel",
"help": "Set main channel"})
def do_join(self, event):
event["server"].send_join(event["server"].get_setting("bot-channel",
"#bitbot"))