move bot_channel.py to core_modules, default to no bot channel
This commit is contained in:
parent
5be9450628
commit
f82e3536f0
1 changed files with 3 additions and 2 deletions
|
@ -8,5 +8,6 @@ class Module(ModuleManager.BaseModule):
|
|||
@utils.hook("received.001")
|
||||
def do_join(self, event):
|
||||
bot_channel = event["server"].get_setting("bot-channel",
|
||||
self.bot.config.get("bot-channel", "#bitbot"))
|
||||
event["server"].send_join(bot_channel)
|
||||
self.bot.config.get("bot-channel", None))
|
||||
if not bot_channel == None:
|
||||
event["server"].send_join(bot_channel)
|
Loading…
Reference in a new issue