Problems With Twitch IRC

First of all don’t post a valid oauth token publicly, it is like a password and has to be kept confidential. Everyone could log into chat with it under the associated account. If you did post if publicly go to the Twitch settings and Disconnect the app it belongs to, so the token becomes invalid.


In regards to your code, I don’t know C# that well and it doesn’t appear to be all the code, so it’s hard to tell exactly what’s going on. Does the WRITE() function insert an \r\n at the end of the line? You need that in the IRC protocol to finish any message you send.

Also where did you get the IPs from? You should always resolve irc.twitch.tv to get the current set of IPs to connect to, since they can change.