diff --git a/src/client/classes/Streamer.js b/src/client/classes/Streamer.js index 4ddc216..90c3b02 100644 --- a/src/client/classes/Streamer.js +++ b/src/client/classes/Streamer.js @@ -16,12 +16,12 @@ module.exports = class { if(!client.stations) return; client.stations.forEach(station => { - const url = station.stream[station.stream.default]; this.play(station); }); } play(station) { + const url = station.stream[station.stream.default]; const audioPlayer = createAudioPlayer(); const resource = createAudioResource(url); audioPlayer.play(resource);