mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 06:49:31 +00:00 
			
		
		
		
	Update index.js
This commit is contained in:
		
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@@ -347,7 +347,7 @@ function play(guild, song) {
 | 
				
			|||||||
	const dispatcher = serverQueue.connection.playStream(ytdl(song.url, { quality: `highestaudio`, filter: 'audioonly' }))
 | 
						const dispatcher = serverQueue.connection.playStream(ytdl(song.url, { quality: `highestaudio`, filter: 'audioonly' }))
 | 
				
			||||||
		.on('end', reason => {
 | 
							.on('end', reason => {
 | 
				
			||||||
			if (reason === 'Stream is not generating quickly enough.') console.log('Song ended.');
 | 
								if (reason === 'Stream is not generating quickly enough.') console.log('Song ended.');
 | 
				
			||||||
			else msg.channel.send(reason);
 | 
								else console.log(reason);
 | 
				
			||||||
			serverQueue.songs.shift();
 | 
								serverQueue.songs.shift();
 | 
				
			||||||
			play(guild, serverQueue.songs[0]);
 | 
								play(guild, serverQueue.songs[0]);
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user