|
|
|
@ -138,6 +138,7 @@ public class TwitchModule extends Module{ |
|
|
|
|
lastFollowerCheck = FOLLOWERCHECKTIMER; |
|
|
|
|
getFollowers(false); |
|
|
|
|
popFollowerFromQueue(); |
|
|
|
|
isStreamOnline(true); |
|
|
|
|
} |
|
|
|
|
if (lastFollowerAnnouncement>0) { |
|
|
|
|
lastFollowerAnnouncement--; |
|
|
|
@ -280,8 +281,12 @@ public class TwitchModule extends Module{ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean isStreamOnline() { |
|
|
|
|
return isStreamOnline(false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean isStreamOnline(boolean update) { |
|
|
|
|
if (update) { |
|
|
|
|
sigIRC.manager.streams().get(TextUtils.getActualChannelName(), new StreamResponseHandler() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -322,6 +327,9 @@ public class TwitchModule extends Module{ |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
return TwitchModule.streamOnline; |
|
|
|
|
} else { |
|
|
|
|
return TwitchModule.streamOnline; |
|
|
|
|
} |
|
|
|
|
//TwitchModule.streamOnline=true;
|
|
|
|
|
//return true;
|
|
|
|
|
} |
|
|
|
|