Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TwitchClient ¶
type TwitchClient struct { // Inner twitch IRC chat client *twitch_irc.Client }
TwitchClient is Wrapper struct for existing Twitch IRC client.
type TwitchClientT ¶
type TwitchClientT interface { Connect() error Disconnect() error Join(channels ...string) Depart(channel string) Say(channel, text string) OnConnect(callback func()) OnPrivateMessage(callback func(message twitch_irc.PrivateMessage)) }
TwitchClientT is the general interface for Twitch IRC client TOOD: Function signature of OnPrivateMessage is currently tied to go-twitch-irc library.
func NewTwitchClient ¶
func NewTwitchClient(username, oauthToken string) TwitchClientT
NewTwitchClient creates new client.
Click to show internal directories.
Click to hide internal directories.