slack

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT 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 {
	Token        string
	AllowKubectl bool
	ClusterName  string
	ChannelName  string
}

Bot listens for user's message, execute commands and sends back the response

func NewSlackBot

func NewSlackBot() *Bot

NewSlackBot returns new Bot object

func (*Bot) Start

func (b *Bot) Start()

Start starts the slacknot RTM connection and listens for messages

Jump to

Keyboard shortcuts

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