mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 02:20:18 +00:00
Update Streamer class
This commit is contained in:
parent
49475212a7
commit
ffa9c8abb0
@ -25,6 +25,12 @@ module.exports = class {
|
||||
|
||||
refresh(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) {
|
||||
|
Loading…
Reference in New Issue
Block a user