Updated formatting file Changed the command line argument system Updated error checking and matching logic to be easier to work with Moved groups of functions to more correct modules Updated the constants.rs file and added a help string for use with the new argument system Disabled lua for now, the rust side of the bot takes priority Changed the shutdown handler to be easier to work with Added shutdown monitor task that gets started after the bot is ready, allowing a graceful shutdown from anywhere in the program, authentication is expected to be handled at the place of calling, not within the shutdown function Added a basic database interface, SQLite will be implemented first as it is the simplest and most useful to the spiff team
18 lines
1.1 KiB
Lua
18 lines
1.1 KiB
Lua
Metadata = {
|
|
name = "help", -- the main required string used to call the command
|
|
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
|
|
help = "Shows you helpful information for the bot. Seems you already know how to use it. :loafplink:",
|
|
|
|
command_category = commandCategory.info, -- this can be any string, but the bot provides a few categories already
|
|
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
|
|
}
|
|
|
|
|
|
function Command(context, message, guildid)
|
|
for t in COMMAND do
|
|
print("Help info for command " + t)
|
|
end
|
|
end
|