Final fixes.
This commit is contained in:
@ -6,24 +6,27 @@ local help = {}
|
||||
local bindings = require('bindings')
|
||||
local utilities = require('utilities')
|
||||
|
||||
local help_text = '*Available commands:*'
|
||||
local help_text
|
||||
|
||||
function help:init()
|
||||
help_text = '*Available commands:*'
|
||||
|
||||
for _,plugin in ipairs(self.plugins) do
|
||||
if plugin.command then
|
||||
help_text = help_text .. '\n• /' .. plugin.command:gsub('%[', '\\[')
|
||||
end
|
||||
end
|
||||
|
||||
help.triggers = utilities.triggers(self.info.username):t('help', true):t('h', true).table
|
||||
end
|
||||
|
||||
help_text = help_text .. [[
|
||||
help_text = help_text .. [[
|
||||
|
||||
• /help <command>
|
||||
Arguments: <required> \[optional]
|
||||
]]
|
||||
|
||||
help.triggers = utilities.triggers(self.info.username):t('help', true):t('h', true).table
|
||||
|
||||
end
|
||||
|
||||
function help:action(msg)
|
||||
|
||||
local input = utilities.input(msg.text_lower)
|
||||
|
Reference in New Issue
Block a user