From 8575fb7906e0e37516eeb90249a8c872da3d7809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20H?= Date: Sat, 6 Jun 2020 10:07:27 +0200 Subject: [PATCH] log music dispatcher errors --- src/modules/music.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/music.js b/src/modules/music.js index fe4f618..6a44857 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -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