bslack

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 13 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 config.ChannelInfo) error

func (*Bslack) Send added in v0.7.0

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

type MMMessage

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

Jump to

Keyboard shortcuts

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