I am trying to write a twitch chat bot using Haskell and I ran into a problem - after connecting to irc.chat.twitch.tv on port 6667 and sending my oauth token and my nick, I do not get any data back from the server (I was expecting the 001, 002 etc…).
I do not think it is a firewall issue since I am able to connect and talk to freenode on the same port.
That means nothing. Freenode is a known IRC network that your ISP/provided may have whitelisted
I also tried running the bot while connected to a VPN, still the same problem. Although is it possible twitch is blocking connections coming from VPNs?
Read all the responses from the server and see what you are or ware not getting
I might be handling the connection incorrectly (this is my first attempt at a real application in Haskell), but it looks to me like absolutely no data is being sent to me. The same bot can join a freenode channel just fine though.
It’s also worth noting that Twitch is merely IRC compatible.
You could also try connecting to a SSL or non SSL port to see if thats the issue. Either that or you’ve got something bizarre going on and your can’t route to Twitch chat from your location. Even via VPN.