mattermostTransport

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MattermostTransport

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

func (*MattermostTransport) GetChannelsOn

func (transport *MattermostTransport) GetChannelsOn() []string

GetChannelsOn returns a list of names of channels the bot is on.

func (*MattermostTransport) GetNicks

func (transport *MattermostTransport) GetNicks(channel string) []string

GetNicks returns a list of nicks of users on the given channel.

func (*MattermostTransport) Init

func (transport *MattermostTransport) Init(botName string, fullConfig *toml.Tree, logger *logrus.Logger,
	eventDispatcher *events.EventDispatcher,
)

Init initializes a transport instance.

func (*MattermostTransport) Name

func (transport *MattermostTransport) Name() string

Name of the transport.

func (*MattermostTransport) NickIsMe

func (transport *MattermostTransport) NickIsMe(nick string) bool

NickIsMe will do pure magic.

func (*MattermostTransport) Run

func (transport *MattermostTransport) Run()

Run will execute the main loop.

func (*MattermostTransport) SendMassNotice

func (transport *MattermostTransport) SendMassNotice(message string)

func (*MattermostTransport) SendMessage

func (transport *MattermostTransport) SendMessage(sourceEvent *events.EventMessage, message string)

func (*MattermostTransport) SendNotice

func (transport *MattermostTransport) SendNotice(sourceEvent *events.EventMessage, message string)

func (*MattermostTransport) SendPrivateMessage

func (transport *MattermostTransport) SendPrivateMessage(sourceEvent *events.EventMessage, nick, message string)

Jump to

Keyboard shortcuts

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