2024-05-03 21:25:42 +02:00
|
|
|
package commands
|
2024-05-03 17:39:11 +02:00
|
|
|
|
|
|
|
|
import "github.com/bwmarrin/discordgo"
|
|
|
|
|
|
2024-05-03 21:25:42 +02:00
|
|
|
var Commands = []*discordgo.ApplicationCommand{
|
2024-05-03 17:39:11 +02:00
|
|
|
{
|
|
|
|
|
Name: "test1",
|
|
|
|
|
Description: "Showcase of a basic slash command",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "init",
|
|
|
|
|
Description: "init things",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "read_back",
|
|
|
|
|
Description: "Showcase of a basic slash command2",
|
|
|
|
|
Options: []*discordgo.ApplicationCommandOption{
|
|
|
|
|
{
|
|
|
|
|
Type: discordgo.ApplicationCommandOptionString,
|
|
|
|
|
Name: "text",
|
|
|
|
|
Description: "text to read back",
|
|
|
|
|
Required: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "delete",
|
|
|
|
|
Description: "delete x amount recent messages in this channel",
|
|
|
|
|
Options: []*discordgo.ApplicationCommandOption{
|
|
|
|
|
{
|
|
|
|
|
Type: discordgo.ApplicationCommandOptionString,
|
|
|
|
|
Name: "amount",
|
2024-05-18 23:28:30 +02:00
|
|
|
Description: "how many to delete",
|
2024-05-03 17:39:11 +02:00
|
|
|
Required: true,
|
|
|
|
|
},
|
2024-05-03 18:07:31 +02:00
|
|
|
{
|
|
|
|
|
Type: discordgo.ApplicationCommandOptionString,
|
|
|
|
|
Name: "webhook_only",
|
|
|
|
|
Description: "bool",
|
|
|
|
|
Required: true,
|
|
|
|
|
},
|
2024-05-03 17:39:11 +02:00
|
|
|
},
|
|
|
|
|
},
|
2024-05-04 18:36:21 +02:00
|
|
|
{
|
|
|
|
|
Name: "http",
|
|
|
|
|
Description: "send http request",
|
|
|
|
|
Options: []*discordgo.ApplicationCommandOption{
|
|
|
|
|
{
|
|
|
|
|
Type: discordgo.ApplicationCommandOptionString,
|
|
|
|
|
Name: "type",
|
|
|
|
|
Description: "request type",
|
|
|
|
|
Required: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Type: discordgo.ApplicationCommandOptionString,
|
|
|
|
|
Name: "url",
|
|
|
|
|
Description: "request url",
|
|
|
|
|
Required: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Type: discordgo.ApplicationCommandOptionString,
|
|
|
|
|
Name: "body",
|
|
|
|
|
Description: "key1:val1,key2:val2...",
|
|
|
|
|
Required: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-05-03 22:37:29 +02:00
|
|
|
{
|
|
|
|
|
Name: "stop",
|
|
|
|
|
Description: "stop bot",
|
|
|
|
|
},
|
2024-05-03 17:39:11 +02:00
|
|
|
}
|