calendar

package
v0.0.0-...-27a7cf5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalendarCommands

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

CalendarCommands contains the /calendar command

func NewCommands

func NewCommands(db *db.Connection) *CalendarCommands

NewCommands gives a new CalendarCommands

func (*CalendarCommands) InstallSlashCommands

func (c *CalendarCommands) InstallSlashCommands(session *discordgo.Session) error

InstallSlashCommands registers the slash commands

func (*CalendarCommands) Register

func (c *CalendarCommands) Register(registry command.Registry)

Register registers the handlers

type CalendarEvent

type CalendarEvent struct {
	Name     string
	Start    time.Time
	End      time.Time
	Location string
}

func ParseSchedule

func ParseSchedule(icalURL string) ([]CalendarEvent, error)

Jump to

Keyboard shortcuts

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