mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 09:53:18 +00:00
Update Streamer class
This commit is contained in:
parent
7d38170ba6
commit
bfba8304e4
@ -27,9 +27,9 @@ module.exports = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.mode == "auto"){
|
if(this.mode == "auto"){
|
||||||
if(!client.stations) return;
|
if(!client.stations.list) return;
|
||||||
|
|
||||||
client.stations.forEach(station => {
|
client.stations.list.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.findIndex(station => station.name == streamer)) return;
|
if(client.stations.list.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) return;
|
if(!client.stations.list) return;
|
||||||
|
|
||||||
client.stations.forEach(station => {
|
client.stations.list.forEach(station => {
|
||||||
this.stop(station);
|
this.stop(station);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user