ircClient

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

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

Go to latest
Published: Apr 22, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IrcClient

type IrcClient struct {
	Client          *irc.Client
	Bounces         map[string]time.Time
	Ready           bool
	ModChannelIndex int
	MessageQueue    []string
	MessagesSent    int
}

IrcClient struct defines object that will send messages to a twitch server

func (*IrcClient) PushMessage

func (ircClient *IrcClient) PushMessage(message string)

PushMessage adds message to array of messages to prevent global bans for bot

func (*IrcClient) SendDebounced

func (ircClient *IrcClient) SendDebounced(message models.OutgoingDebouncedMessage)

SendDebounced prevents from sending data too frequent in public chat sending it to a PM

func (*IrcClient) SendMessages

func (ircClient *IrcClient) SendMessages(interval int)

SendMessages gets slice of messages to send periodically, sends them and updates list of messages

func (*IrcClient) SendModsCommand

func (ircClient *IrcClient) SendModsCommand()

SendModsCommand runs mod command

func (*IrcClient) SendPrivate

func (ircClient *IrcClient) SendPrivate(message *models.OutgoingMessage)

SendPrivate writes data in private to a user

func (*IrcClient) SendPublic

func (ircClient *IrcClient) SendPublic(message *models.OutgoingMessage)

SendPublic writes data to a specified chat

func (*IrcClient) SendRaw

func (ircClient *IrcClient) SendRaw(message string)

SendRaw is wrapper to Write

Jump to

Keyboard shortcuts

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