mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 03:49:33 +00:00 
			
		
		
		
	Update Streamer class
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user