plugins/commands.lua

changeset 33
37caf7bd2021
parent 16
ae69cea97598
child 35
0f17e574b6bb
equal deleted inserted replaced
32:7e79b03f10e1 33:37caf7bd2021
1 require "util.xstanza"
2
3 function riddim.plugins.commands(bot) 1 function riddim.plugins.commands(bot)
4 local command_pattern = "^%"..(bot.config.command_prefix or "@").."([%a%-%_%d]+)(%s?)(.*)$"; 2 local command_pattern = "^%"..(bot.config.command_prefix or "@").."([%a%-%_%d]+)(%s?)(.*)$";
5 3
6 local function process_command(event) 4 local function process_command(event)
7 local body = event.body; 5 local body = event.body;

mercurial