Notice of upcoming changes: websockets and secure connections

How do I make my bot whisper people now with these new changes?
Since in the logs I see that he still does the PRIVMSG to #jtv /w text, but nothing shows up in my chat or any other chats. I have him connected to the new chat servers so not sure what I’m doing wrong here.

No idea what you mean with “new chat servers”, but for whispers you have to connect to “group chat server”. To receive it you have to request commands (and maybe tags, not sure if it depends on IRC client).

I’m not sure if the group chat servers have WebSocket up and running yet, but for IRC it’s pretty simple (though don’t get to comfortable either way, because Twitch doesn’t plan on keeping the whisper system on the group chat servers forever).

That being said, you can send and receive whispers by connecting to the group chat servers (send and receive are both on them).

To send:
PRIVMSG #jtv :/w otherusername message
(where otherusername is their username, and message is your message to send)

or just message:
otherusername message to #jtv

To receive, RAW send the two necessary CAP requests on (or after) login:
CAP REQ :twitch.tv/tags twitch.tv/commands
and then look for messages in the format:
:yourusername!yourusername@yourusername.tmi.twitch.tv WHISPER otherusername :message
(where otherusername is their username, message is their message, and yourusername is your username)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Heads up - we’re going to be rotating IP addresses for our chat servers over the next day or so (some IPs are being added, some removed).

@jrizzo - Looks like the websocket servers are stable now. Is the system ready for building TLS only bots?