aboutsummaryrefslogtreecommitdiff
path: root/modules/set.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-28 14:55:57 +0100
committerGravatar jesopo2018-08-28 14:55:57 +0100
commitb2259c2ea85b44b4b83619d8f4a440ca29972b9e (patch)
tree2a2198d97b0421f7b17c864a928e2f66e83728ac /modules/set.py
parent.log -> .buffer, i missed this one! (diff)
signature
Added !channelsetoverride in set.py
Diffstat (limited to 'modules/set.py')
-rw-r--r--modules/set.py6
1 files changed, 6 insertions, 0 deletions
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="<setting> <value>")
bot.events.on("received").on("command").on("get").hook(
self.get, help="Get a specified user setting",
usage="<setting>", 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="<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"
).hook(self.channel_get, channel_only=True,
help="Get a specified setting for the current channel",