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; |