bot

package
v0.0.0-...-08d1441 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const InteractionResponseFlagEphemeral = 1 << 6

Variables

View Source
var Commands = []*discordgo.ApplicationCommand{
	{
		Name:        "leaderboard",
		Description: "Displays the current leaderboard for this guild.",
	},
}

Commands is a list of all Discord commands belonging to this bot.

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) GenerateLeaderboardEmbed

func (bot *Bot) GenerateLeaderboardEmbed(guildId string) (*discordgo.MessageEmbed, error)

func (*Bot) Start

func (bot *Bot) Start() error

func (*Bot) Stop

func (bot *Bot) Stop()

Jump to

Keyboard shortcuts

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