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:
parent
dd4e240925
commit
85b5a1b26c
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]);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user