class TwitchChatClient
- TwitchChatClient
- Reference
- Object
Overview
Given a WebSocket
and an access token, register a handler for Twitch IRC
messages, and then #run
the chat client.
Defined in:
kenran/bot.crConstructors
Instance Method Summary
-
#on_irc_command(&handler : IRC::Command -> )
Register a handler that receives all
IRC::Command
s. -
#reply_to(id : String, msg : String)
Reply to message by ID
-
#run
Actually start the chat client and run it indefinitely, calling the registered IRC command handler for every message.
-
#send_msg(msg : String)
Send a message to the channel
Constructor Detail
Instance Method Detail
def on_irc_command(&handler : IRC::Command -> )
#
Register a handler that receives all IRC::Command
s.
def run
#
Actually start the chat client and run it indefinitely, calling the registered IRC command handler for every message.