lua testing

This commit is contained in:
lever1209 2024-09-09 07:40:00 -03:00
commit 0f40bc98c3
Signed by: lever1209
GPG key ID: AD770D25A908AFF4
8 changed files with 389 additions and 172 deletions

18
lua/help.lua Normal file
View file

@ -0,0 +1,18 @@
COMMAND["help"] = {
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
command_category = commandCategory.info, -- this can be any string, but the bot provides a few categories already
help = "Shows you helpful information for the bot. Seems you already know how to use it. :loafplink:",
timeout = nil, -- time in milliseconds that the user must wait before running the command again
hidden = false, -- whether or not other commands should acknowledge its existance, for example we dont want dev commands showing up in the help info for regular users, regardless if they can use them or not
permissions = nil, -- which discord permissions they need to run the command
FUNC = function(context, message, guildid)
for t in COMMAND do
print("Help info for command " + t)
end
end
}
COMMAND["help"].FUNC()