3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00
This commit is contained in:
reality 2014-02-17 20:11:11 +00:00
parent 748b42cff0
commit 21eab082bf

View File

@ -38,10 +38,22 @@ var radio = function(dbot) {
}));
}, this);
}.bind(this));
}.bind(this)
stream.on('end', function() {
this.listening = false;
}.bind(this));
}.bind(this),
'getRadio': function() {
dbot.api.timers.addTimer(20000, function() {
if(this.listening == false) {
this.internalAPI.startRadio();
}
}.bind(this));
}
};
this.onLoad = function() {
this.internalAPI.startRadio();
this.internalAPI.getRadio();
}.bind(this);
};