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

28 lines
671 B
Go
Raw Normal View History

2023-10-19 18:08:38 -04:00
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
}