Documentation ¶
Index ¶
Constants ¶
View Source
const PSTFormat = "Jan 2 15:04:05 PST"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicBot ¶
type BasicBot struct { Channel string MsgRate time.Duration Name string Port string OAuthToken string Server string // contains filtered or unexported fields }
func (*BasicBot) Connect ¶
func (bb *BasicBot) Connect()
Connects the bot to the Twitch IRC server. The bot will continue to try to connect until it succeeds or is manually shutdown.
func (*BasicBot) Disconnect ¶
func (bb *BasicBot) Disconnect()
Officially disconnects the bot from the Twitch IRC server.
func (*BasicBot) HandleChat ¶
Listens for and logs messages from chat. Responds to commands from the channel owner. The bot continues until it gets disconnected, told to shutdown, or forcefully shutdown.
func (*BasicBot) JoinChannel ¶
func (bb *BasicBot) JoinChannel()
Makes the bot join its pre-specified channel.
Click to show internal directories.
Click to hide internal directories.