mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Fix issue in Streamer class
This commit is contained in:
parent
c35a0801fd
commit
2d3c7e1184
@ -70,9 +70,13 @@ export default class Streamer {
|
|||||||
})
|
})
|
||||||
.on(AudioPlayerStatus.Idle, () => {
|
.on(AudioPlayerStatus.Idle, () => {
|
||||||
logger('Streamer', station.name + " / " + "Idle");
|
logger('Streamer', station.name + " / " + "Idle");
|
||||||
const url = station.stream[station.stream.default];
|
if(this.mode == "auto"){
|
||||||
const resource = createAudioResource(url);
|
const url = station.stream[station.stream.default];
|
||||||
audioPlayer?.play(resource);
|
const resource = createAudioResource(url);
|
||||||
|
audioPlayer?.play(resource);
|
||||||
|
} else {
|
||||||
|
this.stop(station.name);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.on(AudioPlayerStatus.Paused, () => {
|
.on(AudioPlayerStatus.Paused, () => {
|
||||||
logger('Streamer', station.name + " / " + "Paused");
|
logger('Streamer', station.name + " / " + "Paused");
|
||||||
|
Loading…
Reference in New Issue
Block a user