- Visit this website and get an OAuth Token for your Twitch account.
- Add a server to your IRC client with this configuration, using your OAuth Token as the server password. Make sure it is not using SSL.
{
address = "irc.twitch.tv";
chatnet = "Twitch";
port = "6667";
password = "<YOUR OAUTH TOKEN>";
use_ssl = "no";
ssl_verify = "no";
autoconnect = "yes";
}
- A recent update to Twitch's IRC implementation requires using the IRCv3 "membership" capability in order to subscribe to channel updates. If you don't configure your client to use this capability, you will not see channel members or incoming messages. In order to use the membership capability, your client needs to send this raw command to the IRC server automatically after connecting:
CAP REQ :twitch.tv/membership
In irssi, you can use the autosendcmd
configuration on the chatnet with the /quote
command.
Twitch = {
type = "IRC";
nick = "your_twitch_username";
autosendcmd = "/quote CAP REQ :twitch.tv/membership";
};
- Connect to the server and you can now join stream chat rooms. The rooms are titled
#
followed by the streamer's username in lowercase. So if your name wasStreamLord
you would want to join#streamlord
. You may have issues receiving channel updates if you use capitalized variants.
I had this working great, but recently enabled 2FA on my account to get access to monetization tools and now it stopped working. Do I just need to generate a new token? I notice the linked site for that doesn't let me anymore, but it links to another more complicated site where you can generate a token. I don't know which of the many scope things I want. Maybe everything with "chat" in it. Or should I have selected the bot thing instead of custom?
So I've got access token, refresh token, and client ID, I tried putting all of them (separately, one at a time) after "oauth:" for the password and when I connect I get >[twitch] !tmi.twitch.tv Improperly formatted auth
edit: Well, I got it working somehow. Possibly from manually doing a /connect with the full info in it instead of just doing a /connect with the saved network info. Maybe the client needs to restart before the saved network has the new server info I changed. When I finally got it working I noticed also I had a second Twitch connection that wasn't working, so hard to say for sure which thing I did worked. Good luck to the next guy to deal with this.