bot

package
v0.0.0-...-3d06b5a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SAMPLE_NAME      = "Mattermost Bot Sample"
	USER_EMAIL       = "bot@example.com"
	USER_PASSWORD    = "password1"
	USER_NAME        = "samplebot"
	TEAM_NAME        = "botsample"
	CHANNEL_LOG_NAME = "debugging-for-sample-bot"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {

	// logger instance
	Logger      *logger.Entry
	ChannelHTTP chan *model.WebSocketEvent
	// attachments to create interactive posts
	Attachments map[string]map[string]interface{}
	// contains filtered or unexported fields
}

func NewBot

func NewBot(mattermostURL string,
	props map[string]map[string]interface{}) *Bot

func (*Bot) Start

func (b *Bot) Start()

Jump to

Keyboard shortcuts

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