blob: 6f0f4d047c7d029ddf7a8af6d15b4d1ad348e165 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
from src import ModuleManager, utils
@utils.export("serverset", {"setting": "bot-channel",
"help": "Set main channel"})
class Module(ModuleManager.BaseModule):
@utils.hook("received.numeric.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)
|