Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetHostname ¶
func AssetHostname(c *Context, m *slack.MessageEvent) (bool, error)
Types ¶
type Context ¶
type Context struct { Collins *collins.Client Self *slack.AuthTestResponse Slack *slack.Slack Handlers []Handler // contains filtered or unexported fields }
func (*Context) Handle ¶
func (c *Context) Handle(m *slack.MessageEvent)
func (*Context) Register ¶
TODO i couldnt figure out how to make the handler functions of signature (*Context)func(*slack.MessageEvent)(bool,error) and actually invoke the method on some specific object. So, i moved the context into the arglist. fuck it
func (*Context) WTFHandler ¶
func (c *Context) WTFHandler(m *slack.MessageEvent) (bool, error)
Click to show internal directories.
Click to hide internal directories.