diff options
| -rw-r--r-- | bot.conf.example | 3 | ||||
| -rw-r--r-- | modules/bot_channel.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bot.conf.example b/bot.conf.example index 28be3183..6e16d8a9 100644 --- a/bot.conf.example +++ b/bot.conf.example @@ -7,6 +7,9 @@ tls-certificate = tls-api-key = tls-api-certificate = +# the default channel BitBot automatically joins +bot-channel = + # https://openweathermap.org/api openweathermap-api-key = diff --git a/modules/bot_channel.py b/modules/bot_channel.py index 2fe4e1fd..6f0f4d04 100644 --- a/modules/bot_channel.py +++ b/modules/bot_channel.py @@ -5,5 +5,6 @@ from src import ModuleManager, utils class Module(ModuleManager.BaseModule): @utils.hook("received.numeric.001") def do_join(self, event): - event["server"].send_join(event["server"].get_setting("bot-channel", - "#bitbot")) + bot_channel = event["server"].get_setting("bot-channel", + self.bot.config.get("bot-channel", "#bitbot")) + event["server"].send_join(bot_channel) |
