Update Himbot's response format and add code command
This commit is contained in:
12
main.go
12
main.go
@ -31,6 +31,17 @@ var commands = []api.CreateCommandData{
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "code",
|
||||
Description: "Ask Himbot programming questions! Cooldown: 2 Minutes.",
|
||||
Options: []discord.CommandOption{
|
||||
&discord.StringOption{
|
||||
OptionName: "prompt",
|
||||
Description: "The prompt to send to Himbot.",
|
||||
Required: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "pic",
|
||||
Description: "Generate an image! Cooldown: 1 Minute.",
|
||||
@ -96,6 +107,7 @@ func newHandler(s *state.State) *handler {
|
||||
h.Use(cmdroute.Deferrable(s, cmdroute.DeferOpts{}))
|
||||
h.AddFunc("ping", command.Ping)
|
||||
h.AddFunc("ask", command.Ask)
|
||||
h.AddFunc("code", command.Code)
|
||||
h.AddFunc("pic", command.Pic)
|
||||
h.AddFunc("hs", command.HS)
|
||||
|
||||
|
Reference in New Issue
Block a user