Documentation ¶
Index ¶
- Constants
- func GetAlmanaxFirstDate() time.Time
- func GetAlmanaxLastDate() time.Time
- func GetDefaultConfigValues() map[string]any
- func GetIntents() discordgo.Intent
- func GetRabbitMQClientID() string
- func MapAMQPLocale(locale amqp.Language) discordgo.Locale
- func MapCollator(locale discordgo.Locale) *collate.Collator
- func MapDiscordLocale(locale discordgo.Locale) amqp.Language
- func MapTag(locale discordgo.Locale) language.Tag
- func SupportedDateFormats() []string
- type AlignmentUserLevel
- type AlmanaxWebhook
- type AnkamaGame
- type ChannelServer
- type ChannelWebhook
- type ContextKey
- type EmojiMiscID
- type EmojiType
- type Graphist
- type GuildConfig
- type JobUserLevel
- type Language
- type RssWebhook
- type Season
- type TwitchWebhook
- type TwitterWebhook
- type YoutubeWebhook
Constants ¶
View Source
const ( AlignmentMinLevel = 0 AlignmentMaxLevel = 100 NeutralCityColor = 12506502 )
View Source
const ( ConfigFileName = ".env" // Discord Bot Token. Token = "TOKEN" // Shard ID. More on https://discord.com/developers/docs/topics/gateway#sharding. ShardID = "SHARD_ID" // Total number of shards used to run the entire application. ShardCount = "SHARD_COUNT" // MySQL URL with the following format: HOST:PORT. MySQLURL = "MYSQL_URL" // MySQL user. MySQLUser = "MYSQL_USER" // MySQL password. MySQLPassword = "MYSQL_PASSWORD" // MySQL database name. MySQLDatabase = "MYSQL_DATABASE" // RabbitMQ address. RabbitMQAddress = "RABBITMQ_ADDRESS" // 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 ( Name = "KaellyBot" Version = "2.0.0" Color = 12543562 AvatarIcon = "https://raw.githubusercontent.com/KaellyBot/Kaelly-dashboard/master/public/img/kaellyProfile.png" AvatarImage = "https://raw.githubusercontent.com/KaellyBot/Kaelly-dashboard/master/public/img/kaellyFull.png" Invite = "https://discordapp.com/oauth2/authorize?&client_id=202916641414184960&scope=bot" Discord = "https://discordapp.com/invite/CyJCFDk" Twitter = "https://twitter.com/KaellyBot" Github = "https://github.com/KaellyBot" Paypal = "https://paypal.me/kaysoro" DevelopmentGuildID = "299167247279194112" )
View Source
const ( InvisibleCharacter = "\u200b" MaxButtonPerActionRow = 5 MaxCharacterPerField = 10 MaxEquipmentPerField = 8 MaxIngredientsPerField = 8 )
View Source
const ( EmojiIDEffect EmojiMiscID = "effect" EmojiIDRecipe EmojiMiscID = "recipe" EmojiIDSet EmojiMiscID = "set" EmojiTypeEquipment EmojiType = "Equipment" EmojiTypeBonusSet EmojiType = "BonusSet" EmojiTypeMisc EmojiType = "Miscellaneous" )
View Source
const ( JobMinLevel = 0 JobMaxLevel = 200 )
View Source
const ( LogCommand = "command" LogCommandOption = "option" LogGuildCount = "guildCount" LogGuildID = "guildID" LogChannelID = "channelID" LogCustomID = "customID" LogEntity = "entity" LogEntityCount = "entityCount" LogAnkamaID = "ankamaID" LogItemNumber = "itemNumber" LogItemType = "itemType" LogEmojiType = "emojiType" LogRequestProperty = "requestProperty" LogRequestValue = "requestValue" LogInteractionType = "interactionType" LogShard = "shard" LogFileName = "fileName" LogLocale = "locale" LogPanic = "panic" LogLevelFallback = zerolog.InfoLevel )
View Source
const (
AnkamaLogo = "https://i.imgur.com/dcqcAr2.png"
)
View Source
const (
DefaultLocale = discordgo.EnglishGB
)
View Source
const (
KrosmozAlmanaxDateFormat = "2006-01-02"
)
Variables ¶
This section is empty.
Functions ¶
func GetAlmanaxFirstDate ¶
func GetAlmanaxLastDate ¶
func GetDefaultConfigValues ¶
func GetIntents ¶
func GetRabbitMQClientID ¶
func GetRabbitMQClientID() string
func SupportedDateFormats ¶
func SupportedDateFormats() []string
Types ¶
type AlignmentUserLevel ¶
type AlmanaxWebhook ¶
type AlmanaxWebhook struct {
ChannelWebhook
}
type AnkamaGame ¶
func GetGame ¶
func GetGame() AnkamaGame
type ChannelServer ¶
type ChannelWebhook ¶
type ContextKey ¶
type ContextKey int
const ( ContextKeyChannel ContextKey = iota ContextKeyCity ContextKeyDate ContextKeyDimension ContextKeyDuration ContextKeyEnabled ContextKeyFeed ContextKeyJob ContextKeyLanguage ContextKeyLevel ContextKeyOrder ContextKeyQuery ContextKeyServer ContextKeyStreamer ContextKeyVideast )
type EmojiMiscID ¶
type EmojiMiscID string
type Graphist ¶
func GetGraphist ¶
func GetGraphist() Graphist
type GuildConfig ¶
type GuildConfig struct { Name string Icon string ServerID string ChannelServers []ChannelServer AlmanaxWebhooks []AlmanaxWebhook RssWebhooks []RssWebhook TwitchWebhooks []TwitchWebhook TwitterWebhooks []TwitterWebhook YoutubeWebhooks []YoutubeWebhook }
type JobUserLevel ¶
type Language ¶
type Language struct { Locale discordgo.Locale Tag language.Tag AMQPLocale amqp.Language Collator *collate.Collator TranslationFile string }
func GetLanguages ¶
func GetLanguages() []Language
type RssWebhook ¶
type RssWebhook struct { ChannelWebhook FeedID string }
type Season ¶
type Season struct { Name string StartDate time.Time // exclusive EndDate time.Time // exclusive Color int AlmanaxIcon string }
func GetUnknownSeason ¶
func GetUnknownSeason() Season
type TwitchWebhook ¶
type TwitchWebhook struct { ChannelWebhook StreamerID string }
type TwitterWebhook ¶
type TwitterWebhook struct { ChannelWebhook TwitterName string }
type YoutubeWebhook ¶
type YoutubeWebhook struct { ChannelWebhook VideastID string }
Click to show internal directories.
Click to hide internal directories.