administration.lua will unban /unban'd users in supergroups.

help.lua's help text is now alphabetized.
This commit is contained in:
topkecleon
2016-04-26 14:42:16 -04:00
parent 73f4863bc3
commit 86c290eb17
2 changed files with 37 additions and 8 deletions

View File

@ -1,19 +1,19 @@
-- This plugin should go at the end of your plugin list in
-- config.lua, but not after greetings.lua.
local help_text = '*Available commands:*'
local commandlist = {}
for i,v in ipairs(plugins) do
if v.command then
help_text = help_text .. '\n• /' .. v.command:gsub('%[', '\\[')
table.insert(commandlist, v.command)
end
end
help_text = help_text .. [[
table.insert(commandlist, 'help [command]')
table.sort(commandlist)
• /help <command>
Arguments: <required> \[optional]
]]
local help_text = '*Available commands:*\n• /' .. table.concat(commandlist,'\n• /') .. '\nArguments: <required> [optional]'
help_text = help_text:gsub('%[', '\\[')
local triggers = {
'^/help[@'..bot.username..']*',