Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(ctx context.Context, api *slack.Client, ev *slackevents.AppMentionEvent)
Types ¶
type BotCommand ¶
type BotCommand string
BotCommand is a type for supported bot commands
const ( // HelpCommand is the help command HelpCommand BotCommand = "help" // EchoCommand is the echo command EchoCommand BotCommand = "echo" )
type EventHandler ¶
type EventHandler interface {
Handle(ctx context.Context, api *slack.Client, ev *slackevents.AppMentionEvent)
}
Click to show internal directories.
Click to hide internal directories.