Tue, 22 Sep 2020 14:59:25 +0200
plugins/commands.lua: The default command_prefix value is set on config.docker.lua.
plugins/commands.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/commands.lua Tue Sep 22 14:51:42 2020 +0200 +++ b/plugins/commands.lua Tue Sep 22 14:59:25 2020 +0200 @@ -1,5 +1,5 @@ function riddim.plugins.commands(bot) - local command_pattern = "^%"..(bot.config.command_prefix or "@").."([%a%-%_%d]+)(%s?)(.*)$"; + local command_pattern = "^%"..bot.config.command_prefix.."([%a%-%_%d]+)(%s?)(.*)$"; local direct_address_pattern = false; if bot.config.nick then