Documentation ¶
Index ¶
- Variables
- func Banner()
- func HandleMentionEvent(event *slackevents.AppMentionEvent)
- func PostMessage(channelID string, message string) (string, string, error)
- func RegisterScript(script Script)
- func Shell()
- func SlackEventRoute(c *gin.Context)
- func Start()
- func StatusRoute(c *gin.Context)
- type CustomHandle
- type EventContext
- type Matcher
- type PollEvent
- type Script
- type ScriptFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SlackClient *slack.Client BotName string )
Functions ¶
func HandleMentionEvent ¶
func HandleMentionEvent(event *slackevents.AppMentionEvent)
func RegisterScript ¶
func RegisterScript(script Script)
func SlackEventRoute ¶ added in v1.0.1
func StatusRoute ¶ added in v1.0.1
Types ¶
type CustomHandle ¶
type CustomHandle struct{}
type EventContext ¶
type EventContext struct { Arguments map[string]string SlackEvent *slackevents.AppMentionEvent }
type PollEvent ¶
type Script ¶
type Script struct { Name string Matcher Matcher Description string Function ScriptFunction }
type ScriptFunction ¶
type ScriptFunction func(*EventContext)
Click to show internal directories.
Click to hide internal directories.