Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatTurns = makeStatistic("turns", "Turns played") StatCorrect = makeStatistic("correct", "Your correct guesses") StatIncorrect = makeStatistic("incorrect", "Your fuckups") StatStreak = makeStatistic("streak", "Current streak") StatStreakMax = makeStatistic("streak_max", "Your longest streak") StatGameStreakBreak = makeStatistic("game_streak_break", "Longest game you've ended by getting an answer wrong") )
Functions ¶
func ConfigureFromMessage ¶
func ConfigureFromMessage(db *gorm.DB, m *discordgo.MessageCreate)
func Connect ¶
func Connect(config DatabaseConfig) *gorm.DB
Types ¶
type DatabaseConfig ¶
type ServerConfig ¶
type ServerConfig struct { GuildID string `gorm:"primaryKey"` CountingChannelID string `gorm:"primaryKey"` CreatedAt time.Time }
func GetAllServerConfigs ¶
func GetAllServerConfigs(db *gorm.DB) []ServerConfig
type StatisticRow ¶
Click to show internal directories.
Click to hide internal directories.