mIRC Home    About    Download    Register    News    Help

Print Thread
[Twitch] Getting Full Nicklist / Chatters #258105 10/06/16 12:09 AM
Joined: Mar 2016
Posts: 50
T
TUSK3N Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2016
Posts: 50
I have alot of scripts that checks after Usernames that is in the chat but alot of the times twitch doesnt really work that well with join/part. So the nicklist is never complete and yes I have typed in raw membership or w/e it is.

So what I would like to do is to get chatters from the Twitch API instead of the one mircs using here is the link to chatters,

http://tmi.twitch.tv/group/user/CHANNEL_NAME/chatters

That gives you all the users in the chat, is this something that can be implemented in a script?

something like

if ($2 !ison $chan) { halt }
else {

That it will check on the website instead of mircs.

Hope you guys understand thanks for reading!

Re: [Twitch] Getting Full Nicklist / Chatters [Re: TUSK3N] #258106 10/06/16 01:40 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
If you have the JSON script for mIRC, this code will print out all users. Just need to type in the name of the stream (lowercase letters)

Code:
//jsonopen -ud viewers http://tmi.twitch.tv/group/user/streamname/chatters | var %i = 0 | var %user = $json(viewers,chatters,viewers,%i) | set %list | while (%user) { set %list %list %user | inc %i | var %user = $json(viewers,chatters,viewers,%i) } | echo -a %list

Re: [Twitch] Getting Full Nicklist / Chatters [Re: Sakana] #258107 10/06/16 12:58 PM
Joined: Mar 2016
Posts: 50
T
TUSK3N Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2016
Posts: 50
Thats cool but how do I get all those names in the nicklist? I want it to be able to detect users that is in the list.

Re: [Twitch] Getting Full Nicklist / Chatters [Re: TUSK3N] #258108 10/06/16 01:41 PM
Joined: Jun 2015
Posts: 84
F
Fonic_Artes Offline
Babel fish
Offline
Babel fish
F
Joined: Jun 2015
Posts: 84
I don't know about writing it to the nicklist specifically.

I believe if you had to, you could make it poll every 3-5 minutes for a list of chatters and write them all to a txt file.

Then to check it, poll the txt file that's updated at that time.