hive

package
v0.0.0-...-1928642 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HiveCommand

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

HiveCommand contains the handlers for the Hive commandos

func NewHiveCommand

func NewHiveCommand(dbConn db.Database) *HiveCommand

NewHiveCommand gives a new HiveCommand

func NewHiveCommandForBob

func NewHiveCommandForBob(dbConn db.Database) *HiveCommand

deprecated

func (*HiveCommand) CreateVoiceChannel

func (h *HiveCommand) CreateVoiceChannel(s *discordgo.Session, conf *db.HiveConfiguration, name, catID, guildID string, limit int, hidden bool) (*discordgo.Channel, error)

func (*HiveCommand) HiveCommand

func (h *HiveCommand) HiveCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*HiveCommand) Info

func (h *HiveCommand) Info() []command.Command

Info return the commands in this package

func (*HiveCommand) InstallSlashCommands

func (h *HiveCommand) InstallSlashCommands(session *discordgo.Session) error

InstallSlashCommands registers the slash commands handlers

func (*HiveCommand) Register

func (h *HiveCommand) Register(registry command.Registry, server command.Server)

Register registers the handlers

func (*HiveCommand) SayArchive

SayArchive handles the archive command

func (*HiveCommand) SayAttendance

func (h *HiveCommand) SayAttendance(s *discordgo.Session, m *discordgo.MessageCreate)

SayAttendance handles the tm!attendance command

func (*HiveCommand) SayLeave

SayLeave handles the tm!eave command

func (*HiveCommand) SayVerify

func (h *HiveCommand) SayVerify(s *discordgo.Session, m *discordgo.MessageCreate)

SayVerify handles the tm!verify command

Jump to

Keyboard shortcuts

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