lua testing
This commit is contained in:
parent
2a5c13306e
commit
0f40bc98c3
8 changed files with 389 additions and 172 deletions
18
lua/help.lua
Normal file
18
lua/help.lua
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue