bot

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OutOfOfficeRegex, _ = regexp.Compile("^(.+) is out of office$")
)

Functions

This section is empty.

Types

type Bot

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

func New

func New(slackApiClient *slack.Client, logger *log.Logger, scrum scrum.Service) *Bot

func (*Bot) HandleScrumMessage

func (b *Bot) HandleScrumMessage(event *slack.MessageEvent) bool

HandleMessage handle a received message for scrums and returns if the bot shall continue to process the message or stop continue = true stop = false

func (*Bot) Run

func (b *Bot) Run()

type BotContextHandler

type BotContextHandler interface {
	HandleMessage(event *slack.MessageEvent) bool
}

type BotContextHandlerFunc

type BotContextHandlerFunc func(event *slack.MessageEvent) bool

func (BotContextHandlerFunc) HandleMessage

func (f BotContextHandlerFunc) HandleMessage(event *slack.MessageEvent) bool

Jump to

Keyboard shortcuts

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