adding more stuff for lua command support
This commit is contained in:
parent
0f40bc98c3
commit
c7b54b0ed5
8 changed files with 282 additions and 99 deletions
|
@ -1,4 +1,4 @@
|
|||
commands.help = {
|
||||
sys.registerCommand({
|
||||
aliases = { "h" }, -- other strings that you can run the command from
|
||||
pretty_name = "Help", -- the name of the command as it shows up in menues and other commands that use its pretty name
|
||||
name = "help", -- the main required string used to call the command
|
||||
|
@ -9,13 +9,13 @@ commands.help = {
|
|||
permissions = nil, -- which discord permissions they need to run the command
|
||||
|
||||
func = function(context, message, guildid)
|
||||
for k,v in pairs(commands) do
|
||||
for k, v in pairs(commands) do
|
||||
info("Help info for command", k)
|
||||
end
|
||||
end
|
||||
}
|
||||
})
|
||||
|
||||
commands["help"].func()
|
||||
sys.executeCommand("help", "E")
|
||||
|
||||
-- exit(0)
|
||||
-- local seen={}
|
||||
|
@ -37,4 +37,4 @@ commands["help"].func()
|
|||
-- end
|
||||
-- end
|
||||
|
||||
-- dump(_G,"")
|
||||
-- dump(_G,"")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue