Added !channelsetoverride in set.py
This commit is contained in:
parent
b62cd4be84
commit
b2259c2ea8
1 changed files with 6 additions and 0 deletions
|
@ -9,16 +9,22 @@ class Module(object):
|
||||||
self.postboot_set, replay=True)
|
self.postboot_set, replay=True)
|
||||||
bot.events.on("postboot").on("configure").on("channelset"
|
bot.events.on("postboot").on("configure").on("channelset"
|
||||||
).hook(self.postboot_channelset, replay=True)
|
).hook(self.postboot_channelset, replay=True)
|
||||||
|
|
||||||
bot.events.on("received").on("command").on("set").hook(
|
bot.events.on("received").on("command").on("set").hook(
|
||||||
self.set, help="Set a specified user setting",
|
self.set, help="Set a specified user setting",
|
||||||
usage="<setting> <value>")
|
usage="<setting> <value>")
|
||||||
bot.events.on("received").on("command").on("get").hook(
|
bot.events.on("received").on("command").on("get").hook(
|
||||||
self.get, help="Get a specified user setting",
|
self.get, help="Get a specified user setting",
|
||||||
usage="<setting>", min_args=1)
|
usage="<setting>", min_args=1)
|
||||||
|
|
||||||
bot.events.on("received").on("command").on("channelset"
|
bot.events.on("received").on("command").on("channelset"
|
||||||
).hook(self.channel_set, channel_only=True,
|
).hook(self.channel_set, channel_only=True,
|
||||||
help="Set a specified setting for the current channel",
|
help="Set a specified setting for the current channel",
|
||||||
usage="<setting> <value>", require_mode="o")
|
usage="<setting> <value>", 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="<setting> <value>", permission="channelsetoverride")
|
||||||
bot.events.on("received").on("command").on("channelget"
|
bot.events.on("received").on("command").on("channelget"
|
||||||
).hook(self.channel_get, channel_only=True,
|
).hook(self.channel_get, channel_only=True,
|
||||||
help="Get a specified setting for the current channel",
|
help="Get a specified setting for the current channel",
|
||||||
|
|
Loading…
Reference in a new issue