commands

package
v0.0.0-...-5db1fea Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Subscribe   = "/subscribe"
	Unsubscribe = "/unsubscribe"
	Label       = "/label"
	Unlabel     = "/unlabel"
	List        = "/list"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Usage string
}

func (Command) Help

func (me Command) Help(error string) slack.Msg

func (Command) SplitCommandLine

func (me Command) SplitCommandLine(input string) []string

func (Command) TextMessage

func (me Command) TextMessage(text string) slack.Msg

func (Command) TrimCommandLine

func (me Command) TrimCommandLine(input string) string

type Handler

type Handler interface {
	Execute(slack.SlashCommand) slack.Msg
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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