log music dispatcher errors
This commit is contained in:
parent
d585ffa45c
commit
8575fb7906
1 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,8 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
|
|||
guild.channel.send('<:player:467216674622537748> Now playing: **' + v.video.title + '** `[' + exports.createTimestamp(v.video.lengthSeconds) + ']`')
|
||||
|
||||
// play next in queue on end
|
||||
guild.dispatcher.on('error', console.error);
|
||||
|
||||
guild.dispatcher.once('finish', () => {
|
||||
guild.queue.shift()
|
||||
guild.playing = false
|
||||
|
|
Loading…
Reference in a new issue