mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Update Streamer class
This commit is contained in:
parent
72c1609503
commit
469374f25e
@ -94,14 +94,6 @@ module.exports = class {
|
||||
this.logger('Streamer', station.name + " / " + "AutoPaused");
|
||||
this.play(station);
|
||||
})
|
||||
.on('stateChange', (oldState, newState) => {
|
||||
if (oldState.status === AudioPlayerStatus.Idle && newState.status === AudioPlayerStatus.Playing) {
|
||||
this.logger('Streamer', station.name + " / " + "Playing");
|
||||
} else if (newState.status === AudioPlayerStatus.Idle) {
|
||||
this.logger('Streamer', station.name + " / " + "Idle");
|
||||
this.play(station);
|
||||
}
|
||||
})
|
||||
.on('error', error => {
|
||||
this.logger('Streamer', station.name + " / " + "Error" + "\n" + error);
|
||||
this.play(station);
|
||||
|
Loading…
Reference in New Issue
Block a user