mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 11:13:18 +00:00
Update Streamer class
This commit is contained in:
parent
b66a60ebe9
commit
0bc26f8895
@ -16,12 +16,12 @@ module.exports = class {
|
|||||||
if(!client.stations) return;
|
if(!client.stations) return;
|
||||||
|
|
||||||
client.stations.forEach(station => {
|
client.stations.forEach(station => {
|
||||||
const url = station.stream[station.stream.default];
|
|
||||||
this.play(station);
|
this.play(station);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
play(station) {
|
play(station) {
|
||||||
|
const url = station.stream[station.stream.default];
|
||||||
const audioPlayer = createAudioPlayer();
|
const audioPlayer = createAudioPlayer();
|
||||||
const resource = createAudioResource(url);
|
const resource = createAudioResource(url);
|
||||||
audioPlayer.play(resource);
|
audioPlayer.play(resource);
|
||||||
|
Loading…
Reference in New Issue
Block a user