discord

package
v0.0.0-...-47798e3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCalenderPoll

func GenerateCalenderPoll(s *discordgo.Session, i *discordgo.InteractionCreate, st *state.State)

func PollFinished

func PollFinished(state *state.State)

func TerminateOnSignal

func TerminateOnSignal()

Types

type Bot

type Bot struct {
	*discordgo.Session
	// contains filtered or unexported fields
}

func NewDiscordBot

func NewDiscordBot(db database.Db) *Bot

func (*Bot) AddDiscordHandlers

func (botSession *Bot) AddDiscordHandlers(state *state.State)

func (*Bot) CloseDiscordBot

func (botSession *Bot) CloseDiscordBot()

func (*Bot) StartDiscordBot

func (botSession *Bot) StartDiscordBot() error

Jump to

Keyboard shortcuts

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