Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigFileName = ".env" // Discord Client ID. ClientID = "CLIENT_ID" // Discord Bot Token. Token = "TOKEN" // Metric port. MetricPort = "METRIC_PORT" // Zerolog values from [trace, debug, info, warn, error, fatal, panic]. LogLevel = "LOG_LEVEL" // Boolean; used to register commands at development guild level or globally. Production = "PRODUCTION" )
View Source
const ( ExternalName = "KaellyBot" InternalName = "Kaelly-Registrar" Version = "2.0.0" DevelopmentGuildID = "299167247279194112" )
View Source
const ( LogCommand = "command" LogCommandOption = "option" LogGuildCount = "guildCount" LogGuildID = "guildID" LogChannelID = "channelID" LogEntity = "entity" LogInteractionType = "interactionType" LogShard = "shard" LogFileName = "fileName" LogLocale = "locale" LogPanic = "panic" LogLevelFallback = zerolog.InfoLevel )
View Source
const (
DefaultLocale = discordgo.EnglishGB
)
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigValues ¶
Types ¶
type ContextKey ¶
type ContextKey int
const ( ContextKeyChannel ContextKey = iota ContextKeyCity ContextKeyDimension ContextKeyEnabled ContextKeyFeed ContextKeyJob ContextKeyLanguage ContextKeyLevel ContextKeyOrder ContextKeyServer )
Click to show internal directories.
Click to hide internal directories.