-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
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;
}
});
}
Metadata
Metadata
Assignees
Labels
No labels