move bot_channel.py to core_modules, default to no bot channel

This commit is contained in:
jesopo 2020-02-26 17:30:36 +00:00
parent 5be9450628
commit f82e3536f0

View file

@ -8,5 +8,6 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.001") @utils.hook("received.001")
def do_join(self, event): def do_join(self, event):
bot_channel = event["server"].get_setting("bot-channel", bot_channel = event["server"].get_setting("bot-channel",
self.bot.config.get("bot-channel", "#bitbot")) self.bot.config.get("bot-channel", None))
event["server"].send_join(bot_channel) if not bot_channel == None:
event["server"].send_join(bot_channel)