discord

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordBot

type DiscordBot struct {
	// contains filtered or unexported fields
}

func NewBot

func NewBot(cfg config.ConfigDiscord) *DiscordBot

func (*DiscordBot) Start

func (bot *DiscordBot) Start(updateChan <-chan map[string]*model.ServerInfo) error

func (*DiscordBot) Stop

func (bot *DiscordBot) Stop()

type Reminder added in v1.1.0

type Reminder struct {
	EventID   string
	EventName string
	EventURL  string
	StartTime time.Time // The actual 24h start time
	RemindAt  time.Time // When the bot should post the message
	Now       bool
}

type ReminderStore added in v1.1.0

type ReminderStore struct {
	sync.Mutex
	Pending []Reminder
}

Jump to

Keyboard shortcuts

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