refactor funbot to packages

This commit is contained in:
Seraphim Strub 2023-03-09 23:37:01 +01:00
parent 21c6e7a748
commit 5d96c929bb
5 changed files with 182 additions and 160 deletions

View file

@ -0,0 +1,63 @@
package config
import "github.com/disgoorg/disgo/discord"
var (
Commands = []discord.ApplicationCommandCreate{
discord.SlashCommandCreate{
Name: "img",
Description: "get a funny or cute image",
Options: []discord.ApplicationCommandOption{
discord.ApplicationCommandOptionString{
Name: "type",
Description: "what do you want?",
Required: true,
Choices: []discord.ApplicationCommandOptionChoiceString{
{
Name: "facedesk",
Value: "imgur-I5Q4U",
}, {
Name: "hug",
Value: "imgur-jHJOc",
}, {
Name: "pat",
Value: "imgur-WiPTl",
}, {
Name: "roll",
Value: "imgur-lrEwS",
}, {
Name: "wombat",
Value: "imgur-mnhzS",
}, {
Name: "capybara",
Value: "imgur-hfL80",
}, {
Name: "quokka",
Value: "imgur-WvjQA",
}, {
Name: "otter",
Value: "imgur-BL2MW",
}, {
Name: "seal",
Value: "imgur-jE3IoCU",
}, {
Name: "shepherd",
Value: "imgur-XSAIPVF",
}, {
Name: "firework",
Value: "imgur-g228Sf1",
}, {
Name: "marblefox",
Value: "imgur-yQlGBLE",
}, {
Name: "chibird",
Value: "imgur-zHsrxFr",
},
},
},
},
},
}
NoCommands []discord.ApplicationCommandCreate
)

View file

@ -0,0 +1,13 @@
package config
import (
"github.com/disgoorg/snowflake/v2"
"os"
)
var (
Token = os.Getenv("disgo_token")
ApiImgurKey = os.Getenv("disgo_imgur")
GlobalCommands = os.Getenv("disgo_global")
RegisterGuildID = snowflake.GetEnv("disgo_guild_id")
)