This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
Corn-Utility/commandStore.go
toast c4ddf77a7b
All checks were successful
Build and push container image / build (push) Successful in 41s
Upload the rest of files
2023-10-20 09:08:38 +11:00

28 lines
671 B
Go

package main
import "github.com/disgoorg/disgo/discord"
/*
This file is used to store the commands for the bot
and will be sent to Discord API on startup
If you came here expecting to see code for the commands,
they are in events/interaction.go
*/
var FALSE = false
func commandsJSON() (commandList []discord.ApplicationCommandCreate) {
commandList = []discord.ApplicationCommandCreate{
discord.SlashCommandCreate{
Name: "host-stats",
Description: "Returns host statistics like OS, CPU Usage, etc",
},
discord.SlashCommandCreate{
Name: "invite",
Description: "Add the bot to your community server",
},
}
return commandList
}