bot

package
v0.0.0-...-563d7cf Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Session            *discordgo.Session
	Config             config.Config
	Database           *gorm.DB
	AdventOfCodeClient *adventofcode.Client
	Scheduler          *gocron.Scheduler
	// contains filtered or unexported fields
}

func New

func New(config config.Config) (*Bot, error)

func (*Bot) GenerateLeaderboardMessage

func (bot *Bot) GenerateLeaderboardMessage(guildId string) (*discordgo.InteractionResponseData, error)

func (*Bot) Start

func (bot *Bot) Start() error

func (*Bot) Stop

func (bot *Bot) Stop()

type LeaderboardEntry

type LeaderboardEntry struct {
	Username string
	Days     []string
}

type LeaderboardTemplateData

type LeaderboardTemplateData struct {
	Entries []LeaderboardEntry
	Event   string
}

Jump to

Keyboard shortcuts

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