diff options
Diffstat (limited to 'modules/bot_channel.py')
| -rw-r--r-- | modules/bot_channel.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/bot_channel.py b/modules/bot_channel.py index cbe50119..2e2ff6fb 100644 --- a/modules/bot_channel.py +++ b/modules/bot_channel.py @@ -1,12 +1,11 @@ - +from src import Utils class Module(object): def __init__(self, bot, events, exports): - events.on("received.numeric.001").hook(self.do_join) - exports.add("serverset", {"setting": "bot-channel", "help": "Set main channel"}) + @Utils.hook("received.numeric.001") def do_join(self, event): event["server"].send_join(event["server"].get_setting("bot-channel", "#bitbot")) |
