From 6f8338b7b5140ae45ba4df2220b4983fc8994195 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 10 Dec 2019 17:11:44 +0000 Subject: allow users to set command-method for PMs with them --- src/core_modules/commands/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core_modules/commands') diff --git a/src/core_modules/commands/__init__.py b/src/core_modules/commands/__init__.py index b31b3320..ec97c121 100644 --- a/src/core_modules/commands/__init__.py +++ b/src/core_modules/commands/__init__.py @@ -36,9 +36,10 @@ SETTING_COMMANDMETHOD = utils.OptionsSetting(COMMAND_METHODS, COMMAND_METHOD, "Set the command prefix used in this channel", example="!")) @utils.export("serverset", utils.Setting("command-prefix", "Set the command prefix used on this server", example="!")) +@utils.export("botset", SETTING_COMMANDMETHOD) @utils.export("serverset", SETTING_COMMANDMETHOD) @utils.export("channelset", SETTING_COMMANDMETHOD) -@utils.export("botset", SETTING_COMMANDMETHOD) +@utils.export("set", SETTING_COMMANDMETHOD) @utils.export("channelset", utils.BoolSetting("hide-prefix", "Disable/enable hiding prefix in command reponses")) @utils.export("channelset", utils.BoolSetting("commands", -- cgit v1.3.1-10-gc9f91