// Is twitch channel live? $.getJSON('https://api.twitch.tv/kraken/streams/then8show', function(channel) { if (channel["stream"] == null) { // Channel is not live console.log("Nate currently isn't live on Twitch, be sure to check back later!"); } else { // Channel is live // $('#twitch-live').html('

Nate is currently live on Twitch! Come join the stream

'); $('#nav-stream').html(' Stream'); } });