plugins/commands.lua: The default command_prefix value is set on config.docker.lua.

Tue, 22 Sep 2020 14:59:25 +0200

author
Seve Ferrer <seve@delape.net>
date
Tue, 22 Sep 2020 14:59:25 +0200
changeset 159
7ca948b157df
parent 158
57ee70718ecc
child 160
eb5a04a9877a

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

mercurial