2018-09-26 17:27:17 +00:00
|
|
|
from src import Utils
|
2018-09-12 14:44:50 +00:00
|
|
|
|
|
|
|
class Module(object):
|
|
|
|
def __init__(self, bot, events, exports):
|
|
|
|
exports.add("serverset", {"setting": "bot-channel",
|
|
|
|
"help": "Set main channel"})
|
|
|
|
|
2018-09-26 17:27:17 +00:00
|
|
|
@Utils.hook("received.numeric.001")
|
2018-09-12 14:44:50 +00:00
|
|
|
def do_join(self, event):
|
|
|
|
event["server"].send_join(event["server"].get_setting("bot-channel",
|
|
|
|
"#bitbot"))
|