requestify icon indicating copy to clipboard operation
requestify copied to clipboard

not checked

Open S1ROZHA opened this issue 8 years ago • 0 comments

Not checked status on stream

var STREAMER_ID = 'lirik'; var checkStreamUrl = 'https://api.twitch.tv/kraken/streams/'+STREAMER_ID+'?client_id=ott641ae4i3mq3vz86vkwm9qzj3wobs'; function checkStream() { requestify.get(checkStreamUrl).then(function(response) {
if(response.getBody().stream === null) { isStreamOnline = false; console.log("Status: Offline"); } else { if(typeof(isStreamOnline) !== 'undefined' && !isStreamOnline) { console.log("Status: Online"); } isStreamOnline = true; }
}); }

S1ROZHA avatar Sep 03 '17 00:09 S1ROZHA