constants

package
v0.0.0-...-93f6119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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

func GetDefaultConfigValues() map[string]any

func MapAMQPLocale

func MapAMQPLocale(locale amqp.Language) discordgo.Locale

func MapDiscordLocale

func MapDiscordLocale(locale discordgo.Locale) amqp.Language

Types

type ContextKey

type ContextKey int
const (
	ContextKeyChannel ContextKey = iota
	ContextKeyCity
	ContextKeyDimension
	ContextKeyEnabled
	ContextKeyFeed
	ContextKeyJob
	ContextKeyLanguage
	ContextKeyLevel
	ContextKeyOrder
	ContextKeyServer
)

type Language

type Language struct {
	Locale          discordgo.Locale
	AMQPLocale      amqp.Language
	TranslationFile string
}

func GetLanguages

func GetLanguages() []Language

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL