commands

package
v0.0.0-...-ae6a1b9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeaderboardCommand

func NewLeaderboardCommand() *leaderboardCommand

func NewRankCommand

func NewRankCommand(onRank func(member *discordgo.User)) *rankCommand

Types

type Command

type Command interface {
	Name() string
	Execute(message *discordgo.Message) (string, error)
	ResponseMessage() string
	Usage() string
}

func NewClearMessageCommand

func NewClearMessageCommand(session *discordgo.Session) Command

func NewJoiningDateCommand

func NewJoiningDateCommand(session *discordgo.Session) Command

func NewLoveMeterCommand

func NewLoveMeterCommand(session *discordgo.Session) Command

func NewMuteCommand

func NewMuteCommand(session *discordgo.Session) Command

func NewRockPaperScissorsCommand

func NewRockPaperScissorsCommand(session *discordgo.Session) Command

type RockPaperScissorsCommand

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

func (*RockPaperScissorsCommand) Execute

func (cmd *RockPaperScissorsCommand) Execute(message *discordgo.Message) (string, error)

func (*RockPaperScissorsCommand) Name

func (cmd *RockPaperScissorsCommand) Name() string

func (*RockPaperScissorsCommand) ResponseMessage

func (cmd *RockPaperScissorsCommand) ResponseMessage() string

func (*RockPaperScissorsCommand) Usage

func (cmd *RockPaperScissorsCommand) Usage() string

Jump to

Keyboard shortcuts

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