mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-14 03:50:18 +00:00
Update Streamer class
This commit is contained in:
parent
cc3b2a50cf
commit
214dff29d5
@ -27,9 +27,9 @@ module.exports = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.mode == "auto"){
|
if(this.mode == "auto"){
|
||||||
if(!client.stations.list) return;
|
if(!client.stations) return;
|
||||||
|
|
||||||
client.stations.list.forEach(station => {
|
client.stations.forEach(station => {
|
||||||
this.play(station);
|
this.play(station);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ module.exports = class {
|
|||||||
|
|
||||||
let streamers = this.map.keys();
|
let streamers = this.map.keys();
|
||||||
streamers.forEach(streamer => {
|
streamers.forEach(streamer => {
|
||||||
if(client.stations.list.findIndex(station => station.name == streamer)) return;
|
if(client.stations.findIndex(station => station.name == streamer)) return;
|
||||||
this.stop(streamer);
|
this.stop(streamer);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -119,9 +119,9 @@ module.exports = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
leave(client) {
|
leave(client) {
|
||||||
if(!client.stations.list) return;
|
if(!client.stations) return;
|
||||||
|
|
||||||
client.stations.list.forEach(station => {
|
client.stations.forEach(station => {
|
||||||
this.stop(station);
|
this.stop(station);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user