2018-10-03 12:22:37 +00:00
|
|
|
from src import ModuleManager, utils
|
2018-09-12 14:44:50 +00:00
|
|
|
|
2018-10-03 12:22:37 +00:00
|
|
|
@utils.export("serverset", {"setting": "bot-channel",
|
2018-09-27 11:10:54 +00:00
|
|
|
"help": "Set main channel"})
|
2018-09-27 10:45:23 +00:00
|
|
|
class Module(ModuleManager.BaseModule):
|
2018-10-03 12:22:37 +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"))
|