mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:13:17 +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