mirror of
https://github.com/reality/dbot.git
synced 2024-12-28 05:32:50 +01:00
fuck lag
This commit is contained in:
parent
748b42cff0
commit
21eab082bf
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user