diff --git a/modules/set.py b/modules/set.py index 0cc1b144..0f73d70c 100644 --- a/modules/set.py +++ b/modules/set.py @@ -9,16 +9,22 @@ class Module(object): self.postboot_set, replay=True) bot.events.on("postboot").on("configure").on("channelset" ).hook(self.postboot_channelset, replay=True) + bot.events.on("received").on("command").on("set").hook( self.set, help="Set a specified user setting", usage=" ") bot.events.on("received").on("command").on("get").hook( self.get, help="Get a specified user setting", usage="", min_args=1) + bot.events.on("received").on("command").on("channelset" ).hook(self.channel_set, channel_only=True, help="Set a specified setting for the current channel", usage=" ", require_mode="o") + bot.events.on("received").on("command").on("channelsetoverride" + ).hook(self.channel_set, channel_only=True, + help="Set a specified setting for the current channel", + usage=" ", permission="channelsetoverride") bot.events.on("received").on("command").on("channelget" ).hook(self.channel_get, channel_only=True, help="Get a specified setting for the current channel",