commands

package
v0.0.0-...-e4b2dea Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpCommandName = "!help"
)
View Source
const (
	ListCommandName = "!list"
)
View Source
const (
	RulesCommandName = "!rules"
)
View Source
const (
	StateCommandName = "!state"
)
View Source
const (
	StatsCommandName = "!stats"
)
View Source
const (
	VersionCommandName = "!version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(*gorm.DB, *discordgo.Session, *discordgo.MessageCreate)
	Describe() string
}

func GetCommand

func GetCommand(commandName string) Command

type HelpCommand

type HelpCommand struct{}

func (HelpCommand) Describe

func (hc HelpCommand) Describe() string

func (HelpCommand) Execute

func (c HelpCommand) Execute(db *gorm.DB, s *discordgo.Session, m *discordgo.MessageCreate)

type ListCommand

type ListCommand struct{}

func (ListCommand) Describe

func (c ListCommand) Describe() string

func (ListCommand) Execute

func (c ListCommand) Execute(db *gorm.DB, s *discordgo.Session, m *discordgo.MessageCreate)

type RulesCommand

type RulesCommand struct{}

func (RulesCommand) Describe

func (c RulesCommand) Describe() string

func (RulesCommand) Execute

func (c RulesCommand) Execute(db *gorm.DB, s *discordgo.Session, m *discordgo.MessageCreate)

type StateCommand

type StateCommand struct{}

func (StateCommand) Describe

func (c StateCommand) Describe() string

func (StateCommand) Execute

func (c StateCommand) Execute(db *gorm.DB, s *discordgo.Session, m *discordgo.MessageCreate)

type StatsCommand

type StatsCommand struct{}

func (StatsCommand) Describe

func (c StatsCommand) Describe() string

func (StatsCommand) Execute

func (c StatsCommand) Execute(db *gorm.DB, s *discordgo.Session, m *discordgo.MessageCreate)

type VersionCommand

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

func (VersionCommand) Describe

func (vc VersionCommand) Describe() string

func (VersionCommand) Execute

func (vc VersionCommand) Execute(db *gorm.DB, session *discordgo.Session, message *discordgo.MessageCreate)

Jump to

Keyboard shortcuts

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