1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-12 09:47:28 +03:00
parent dd4e240925
commit 85b5a1b26c

View File

@ -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]);
}) })