forked from GitHub/dbot
fuck lag
This commit is contained in:
parent
748b42cff0
commit
21eab082bf
@ -38,10 +38,22 @@ var radio = function(dbot) {
|
|||||||
}));
|
}));
|
||||||
}, this);
|
}, this);
|
||||||
}.bind(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.onLoad = function() {
|
||||||
this.internalAPI.startRadio();
|
this.internalAPI.getRadio();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user