Out of the kindness of my heart I took it upon myself to look through the Twitch API, and I wrote a few lines that utilize it. This is a
very basic starting point but hopefully after some reading you'll come back with some questions which are more related to mirc scripting itself, and not on how the Twitch API works.
This is not the appropriate forum to ask about the API.This seems to be a good starting point to familiarize yourself with the Twitch API:
https://github.com/justintv/Twitch-API/blob/master/README.mdResponses will be in json, so you may consider using this json script:
http://www.mircscripts.org/comments.php?cid=4407If you want finer control use sockets to receive and parse the data yourself:
https://forums.mirc.com/ubbthreads.php/ubb/showflat/topic/45562/You'll probably need a good handle on hash tables:
/help hash tables in mIRC.
alias tw {
var %url = https://api.twitch.tv/kraken/channels/PJS_Winning/follows
if (!$hget(twitch)) { hmake twitch }
var %_total = $json(%url,_total)
var %user = $json(%url,follows,0,user,name)
if (!$hget(twitch,_total)) || (%_total > $hget(twitch,_total)) {
hadd twitch _total %_total
hadd twitch %_total %user
}
echo -ag $hget(twitch,%_total)
}