Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = new(BotConfig)
Functions ¶
Types ¶
type BotConfig ¶
type BotConfig struct { LogType LogType `json:"log_type" env:"LOG_TYPE"` LogLevel slog.Level `json:"log_level" env:"LOG_LEVEL"` Prefix string `json:"prefix" env:"PREFIX"` Token string `json:"token" env:"TOKEN,secret"` OwnerID string `json:"owner_id" env:"OWNER_ID"` DonateMessage string `json:"donate_message" env:"DONATE_MESSAGE"` Env string `json:"env" env:"ENV"` Presence string `json:"presence" env:"PRESENCE"` GitRepoURL string `json:"git_repo_url" env:"GIT_REPO_URL"` YoutubeAPIKey string `json:"youtube_api_key" env:"YOUTUBE_API_KEY,secret"` SpotifyClientID string `json:"spotify_client_id" env:"SPOTIFY_CLIENT_ID"` SpotifyClientSecret string `json:"spotify_client_secret" env:"SPOTIFY_CLIENT_SECRET,secret"` LastFmAPIKey string `json:"last_fm_api_key" env:"LAST_FM_API_KEY,secret"` HTTPServerPort int `json:"http_server_port" env:"HTTP_SERVER_PORT"` HTTPServerExternalURL string `json:"http_server_external_url" env:"HTTP_SERVER_EXTERNAL_URL"` DB `json:"db"` Tracing `json:"tracing"` }
Click to show internal directories.
Click to hide internal directories.