Documentation ¶
Index ¶
- type IrcClient
- func (ircClient *IrcClient) PushMessage(message string)
- func (ircClient *IrcClient) SendDebounced(message models.OutgoingDebouncedMessage)
- func (ircClient *IrcClient) SendMessages(interval int)
- func (ircClient *IrcClient) SendModsCommand()
- func (ircClient *IrcClient) SendPrivate(message *models.OutgoingMessage)
- func (ircClient *IrcClient) SendPublic(message *models.OutgoingMessage)
- func (ircClient *IrcClient) SendRaw(message string)
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.