mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:40:18 +00:00
Replay idle audioPlayer in Streamer class
This commit is contained in:
parent
93b79f8046
commit
ccb477faa9
@ -70,6 +70,9 @@ export default class Streamer {
|
||||
})
|
||||
.on(AudioPlayerStatus.Idle, () => {
|
||||
logger('Streamer', station.name + " / " + "Idle");
|
||||
const url = station.stream[station.stream.default];
|
||||
const resource = createAudioResource(url);
|
||||
audioPlayer?.play(resource);
|
||||
})
|
||||
.on(AudioPlayerStatus.Paused, () => {
|
||||
logger('Streamer', station.name + " / " + "Paused");
|
||||
|
Loading…
Reference in New Issue
Block a user