Documentation
¶
Index ¶
Constants ¶
View Source
const (
IRC_URL = "irc.chat.twitch.tv:6667"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Messages chan Message // contains filtered or unexported fields }
Client is the IRC connector.
func (*Client) JoinChannel ¶ added in v0.1.3
AddChannel connects the bot to a new channel
func (*Client) PartChannel ¶ added in v0.1.3
PartChannel leaves a Twitch's channel
func (*Client) SendMessage ¶ added in v0.1.3
SendMessage writes a message to a specifc IRC channel
type Config ¶
type Config struct { // OAuthToken is the token to allow you // to connect to the IRC. OAuthToken string // BotUsername must be the same as the account // that was used to generate the OAuthToken. BotUsername string // Channels are the names of a each Twitch's // channel that you want to your bot to connect to. Channels []string // MaxTries set de amount of times between // each connection retry. MaxTries uint }
Config store the base information for a connection with Twitch's IRC.
type Message ¶
type Message struct { // Channel is which channel the // message was sent Channel string // Sender the username of who sent // the Message Sender string // Text is the text sent to IRC Text string // contains filtered or unexported fields }
Message refers to each line read in IRC connection
Click to show internal directories.
Click to hide internal directories.