slack

package
v0.0.0-...-dace950 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RE_MAILTO = regexp.MustCompile(`<mailto:(.+?)\|(.+?)>`)
)

Functions

This section is empty.

Types

type SlackListener

type SlackListener struct {
	// contains filtered or unexported fields
}

func (*SlackListener) DoOneLoop

func (self *SlackListener) DoOneLoop()

func (SlackListener) InputChannel

func (self SlackListener) InputChannel() chan types.CommunicationChannel

func (*SlackListener) MainLoop

func (self *SlackListener) MainLoop()

func (SlackListener) New

func (self SlackListener) New(config types.ListenerConfig, request, answer chan types.CommunicationChannel) listeners.Listener

New creates a new Slack Listener.

func (*SlackListener) OnConnected

func (self *SlackListener) OnConnected(ev *slackclient.ConnectedEvent)

OnConnected is called when Slack connects and includes tons of data.

func (*SlackListener) OnMessage

func (self *SlackListener) OnMessage(ev *slackclient.MessageEvent)

func (*SlackListener) SendMessage

func (self *SlackListener) SendMessage(userName string, message string)

SendMessage sends a user a response.

func (SlackListener) Start

func (self SlackListener) Start()

func (*SlackListener) Stop

func (self *SlackListener) Stop()

Jump to

Keyboard shortcuts

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