Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Read Twitch Chat (Not for a Bot)

Hey guys, I've been working on a project to further my knowledge and I've run into a snag and can't find anything on how to do this. Anyway, I just want to get the chat text itself not be able to send messages or bot, so I can have the twitch chat in an application. Twitch had said it is HTML5 and Irc so I guess you could go somewhere with that? Don't want the code written for me just an informational page or something to jump start me in the direction I need. Thanks.
[Image: QzuGNU3.gif]
https://github.com/justintv/Twitch-API/b...ter/IRC.md

If you need more help in implementing I can post some code.
Irc uses TCP.
Using a TCPClient to connect and StreamReader to read is the easiest way.

Here is an example if you want one.
Lotta blood to let, peace to make, give a fuk about a check
You will need:
• A method of connecting to an IRC server, so manually handing a TCPClient or a library
• A twitch account, complete with a chat_login oauth code
• The twitch channel you want to connect to

What you need to do:
• Connect to the irc server "irc.twitch.tv" on port "6667"
• Set the username and nickname to your twitch account in all lower case
• Set the password to be your twitch oauth, E.g. "oauth:aiudhf89daghaakjhgda"
• Once you are connected, to join a stream's channel, you need to join "#" + channel name in lowercase
• Handle message received, you will get the twitch username in lowercase and the message
• If you want to handle whispers, it's a whole lot more work

If you need a hand, I've worked with twitch in Vb.NET and Java before, so just HMU with a PM.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by PHaRTnONuAlLMar 5, 2019 01:07 AM 0 130 Mar 5, 2019 01:07 AM
Last Post: PHaRTnONuAlL
[.NET] by FlzdudenFeb 3, 2016 04:32 AM 15 485 Feb 3, 2016 04:32 AM
Last Post: +Haze
[Python] by DefiantmarksmanJan 24, 2016 06:52 PM 1 131 Jan 24, 2016 06:52 PM
Last Post: nolapola