I am currently developing a twitch bot that monitors the users in the chat.
This site link will give you every user in the twitch stream / irc chat: http://tmi.twitch.tv/group/user/lirik/chatters.
For example I have given you lirik's chat. I need to get the folowing from the site:
"_links": {},
"chatter_count": 0,
"chatters": {
"moderators": [],
"staff": [],
"admins": [],
"global_mods": [],
"viewers": []
Here is the code I have written so far to connect to the site and read the text:
WebClient web = new WebClient();
System.IO.Stream stream = web.OpenRead("http://tmi.twitch.tv/group/user/lirik/chatters");
using (System.IO.StreamReader reader = new System.IO.StreamReader(stream))
{
String text = reader.ReadToEnd();
}
How can I turn the text from the site into multiple arrays?