bot

package
v0.0.0-...-8032cbc Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2017 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

Bot representation

func New

func New(api *slack.Client) *Bot

New creates a new Bot

func (*Bot) HandleMessage

func (b *Bot) HandleMessage(event *slack.MessageEvent)

HandleMessage routes all incoming messages

type Config

type Config struct {
	Admin     string              `json:"admin"`
	Notifiers map[string][]string `json:"notifiers"`
	Debug     bool                `json:"debug"`
}

Config is the representation of the dynamic config.json

func NewConfig

func NewConfig() *Config

NewConfig returns a new instance of Config

Jump to

Keyboard shortcuts

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