command

package
v0.0.0-...-f9accb7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AvailableCommandList

func AvailableCommandList() []string

func CmdLimit

func IsCmd

func IsCmd(msg string) bool

func Parse

func Parse(msg string, payload *CmdPayload) error

Types

type ChatCommandI

type ChatCommandI func(s *discordgo.Session, m *discordgo.MessageCreate, p CmdPayload) msg.Response

type CmdPayload

type CmdPayload struct {
	Cmd Command
	Msg string
}

type Command

type Command string
const (
	CmdPrefix = "!"

	CUnknown Command = "unknown"
	CHelp    Command = "help"
	CJoin    Command = "join"
	CLeave   Command = "leave"
	CPick    Command = "pick"
	CBan     Command = "ban"
	CReset   Command = "reset"
	CPlayers Command = "players"
	CTeams   Command = "teams"
	CLimit   Command = "limit"
	CStart   Command = "start"
	CStop    Command = "stop"
	CAssign  Command = "assign"
	CStatus  Command = "status"
	CRoles   Command = "roles"
)

Jump to

Keyboard shortcuts

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