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 ¶
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.