Permalink
Browse files

Bug fix for Six Gaming going live.

  • Loading branch information...
roncli committed Jul 3, 2016
1 parent e24a586 commit 8806eb84e398b5f3b848d88ea8a662f9a44a56fc
Showing with 3 additions and 3 deletions.
  1. +3 −3 sixgaming.js
View
@@ -124,7 +124,7 @@ SixGaming.start = function(_irc, _discord, _twitch) {
// Remove live channel data from offline streams.
wentOffline.forEach(function(name) {
if (name === "SixGamingGG") {
if (name.toLowerCase() === "sixgaminggg") {
discord.setStatus("online", null);
}
delete liveChannels[name];
@@ -144,7 +144,7 @@ SixGaming.start = function(_irc, _discord, _twitch) {
// Discord notifications for new live channels.
wentLive.forEach(function(stream) {
if (stream === "SixGamingGG") {
if (stream.toLowerCase() === "sixgaminggg") {
if (liveChannels[stream].game) {
SixGaming.discordQueue("@everyone - Six Gaming just went live on Twitch with \"" + liveChannels[stream].game + "\": \"" + liveChannels[stream].channel.status + "\" Watch at http://twitch.tv/" + stream, liveStreamAnnouncementsChannel);
} else {
@@ -199,7 +199,7 @@ SixGaming.start = function(_irc, _discord, _twitch) {
updateHosting = function(live) {
var liveStreamers;
if (liveChannels["SixGamingGG"]) {
if (liveChannels["sixgaminggg"]) {
// Six Gaming is live, no need to update hosting.
setTimeout(checkStreams, 60000);
return;

0 comments on commit 8806eb8

Please sign in to comment.