Update Packages, Add Status Command, and Bugfixes (!8)
Co-authored-by: Layla Manley <layla@layla.gg> Reviewed-on: #8
This commit is contained in:
@ -4,10 +4,11 @@ import "strings"
|
||||
|
||||
// Config is used to modify the behavior of birdbot externally
|
||||
type Config struct {
|
||||
Discord DiscordConfig `yaml:"discord"`
|
||||
Mastodon MastodonConfig `yaml:"mastodon"`
|
||||
Feedback Feedback `yaml:"feedback"`
|
||||
Features Features `yaml:"features"`
|
||||
Discord DiscordConfig `yaml:"discord"`
|
||||
Mastodon MastodonConfig `yaml:"mastodon"`
|
||||
Feedback Feedback `yaml:"feedback"`
|
||||
StatusPortal StatusPortal `yaml:"status_portal"`
|
||||
Features Features `yaml:"features"`
|
||||
}
|
||||
|
||||
// DiscordConfig contains discord specific configuration
|
||||
@ -33,6 +34,10 @@ type Feedback struct {
|
||||
FailureMessage string `yaml:"failure_message"`
|
||||
}
|
||||
|
||||
type StatusPortal struct {
|
||||
URL string `yaml:"url" env:"BIRD_STATUS_PORTAL_URL"`
|
||||
}
|
||||
|
||||
type RoleSelectionConfig struct {
|
||||
Title string `yaml:"title"`
|
||||
Description string `yaml:"description"`
|
||||
@ -63,6 +68,7 @@ type Features struct {
|
||||
RoleSelection Feature `yaml:"role_selection" env:"BIRD_ROLE_SELECTION"`
|
||||
Feedback Feature `yaml:"feedback" env:"BIRD_FEEDBACK"`
|
||||
LoadGamePlugins Feature `yaml:"load_game_plugins" env:"BIRD_LOAD_GAME_PLUGINS"`
|
||||
StatusPortal Feature `yaml:"status_portal" env:"BIRD_STATUS_PORTAL"`
|
||||
}
|
||||
|
||||
// Feature is a boolean string used to toggle functionality
|
||||
|
Reference in New Issue
Block a user