1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10: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' }))
.on('end', reason => {
if (reason === 'Stream is not generating quickly enough.') console.log('Song ended.');
else msg.channel.send(reason);
else console.log(reason);
serverQueue.songs.shift();
play(guild, serverQueue.songs[0]);
})