adding more stuff for lua command support

This commit is contained in:
lever1209 2024-09-09 21:03:46 -03:00
commit c7b54b0ed5
Signed by: lever1209
GPG key ID: AD770D25A908AFF4
8 changed files with 282 additions and 99 deletions

View file

@ -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,"")