game

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookCommand

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

LookCommand contains the /lookforplayers command

func NewLookCommand

func NewLookCommand(dbConn db.Database) *LookCommand

NewLookCommand gives a new LookCommand

func (*LookCommand) Info

func (l *LookCommand) Info() []command.Command

Info return the commands in this package

func (*LookCommand) InstallSlashCommands

func (l *LookCommand) InstallSlashCommands(s *discordgo.Session) error

InstallSlashCommands registers the slash commands TODO: Make configurable for specific guilds

func (*LookCommand) Register

func (l *LookCommand) Register(registry command.Registry, server command.Server)

Register registers the handlers

func (*LookCommand) SearchCommand

func (l *LookCommand) SearchCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

type MuteCommand

type MuteCommand struct{}

adduser contains the bob!adduser and bob!remuser command

func NewMuteCommand

func NewMuteCommand() *MuteCommand

NewMuteCommand gives a new MuteCommand

func (*MuteCommand) Info

func (m *MuteCommand) Info() []command.Command

Info return the commands in this package

func (*MuteCommand) InstallSlashCommands

func (m *MuteCommand) InstallSlashCommands(session *discordgo.Session) error

InstallSlashCommands registers the slash commands

func (*MuteCommand) Register

func (m *MuteCommand) Register(registry command.Registry, server command.Server)

Register registers the handlers

type UserCommand

type UserCommand struct{}

adduser contains the bob!adduser and bob!remuser command

func NewUserCommand

func NewUserCommand() *UserCommand

NewUserCommand gives a new UserCommand

func (*UserCommand) Info

func (u *UserCommand) Info() []command.Command

Info return the commands in this package

func (*UserCommand) InstallSlashCommands

func (u *UserCommand) InstallSlashCommands(session *discordgo.Session) error

InstallSlashCommands registers the slash commands

func (*UserCommand) Register

func (u *UserCommand) Register(registry command.Registry, server command.Server)

Register registers the handlers

Jump to

Keyboard shortcuts

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