I want to build a IRC bot in C# cannot figure out how to get it to connect to twitch!

I cannot figure out how to implement a field for a password I want it to connect to Twitch and use my bot. I am working in C# with a Console application. http://pastebin.com/6m7V9C6e

You need to send an oauth token like this:

PASS oauth:drg908drg03kdgr09drgi0drg90sek

The above oauth token is just gibberish. Get your unique token here and connect with the same nick.

Edit: useful link http://help.twitch.tv/customer/portal/articles/1302780-twitch-irc

Now when I run this code http://pastebin.com/yEds72iJ in C# I get a message like so I am getting a reply from the server now just a Unsuccessful message… I accedentally left my oauth in the pastebin so I regenerated it… Please help if you can. @livewhiletrue

PASS has to be sent first followed by NICK. USER is irrelevant for Twitch.

1 Like

As is MODE messages.

I was able to connect by removing the USER and adding the PASS function before NICK. Thanks for the Help @livewhiletrue @3ventic

Just paying it forward - this is an awesome forum. Stick around!

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