mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-13 00:10:21 +00:00
Update Streamer class
This commit is contained in:
parent
49475212a7
commit
ffa9c8abb0
@ -25,6 +25,12 @@ module.exports = class {
|
|||||||
|
|
||||||
refresh(client){
|
refresh(client){
|
||||||
this.init(client);
|
this.init(client);
|
||||||
|
|
||||||
|
let streamers = this.map.keys();
|
||||||
|
streamers.forEach(streamer => {
|
||||||
|
if(client.stations.findIndex(station => station.name == streamer)) return;
|
||||||
|
this.map.delete(streamer);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
play(station) {
|
play(station) {
|
||||||
|
Loading…
Reference in New Issue
Block a user