bslack

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bslack added in v0.7.0

type Bslack struct {
	Config *config.Protocol

	Plus    bool
	Remote  chan config.Message
	Users   []slack.User
	Account string
	// contains filtered or unexported fields
}

func New

func New(cfg config.Protocol, account string, c chan config.Message) *Bslack

func (*Bslack) Command added in v0.7.0

func (b *Bslack) Command(cmd string) string

func (*Bslack) Connect added in v0.7.0

func (b *Bslack) Connect() error

func (*Bslack) Disconnect added in v0.9.3

func (b *Bslack) Disconnect() error

func (*Bslack) JoinChannel added in v0.7.0

func (b *Bslack) JoinChannel(channel string) error

func (*Bslack) Send added in v0.7.0

func (b *Bslack) Send(msg config.Message) error

type MMMessage

type MMMessage struct {
	Text     string
	Channel  string
	Username string
	Raw      *slack.MessageEvent
}

Jump to

Keyboard shortcuts

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