toast
c4ddf77a7b
All checks were successful
Build and push container image / build (push) Successful in 41s
28 lines
671 B
Go
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
|
|
}
|