From feab4749b36e9f2149e5d29f721a515dfa4639e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20H?= Date: Sat, 6 Jun 2020 10:18:53 +0200 Subject: [PATCH] more debug --- src/modules/music.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modules/music.js b/src/modules/music.js index 763d643..036b71e 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -200,9 +200,18 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) { console.log('[MUSIC DEBUG] got v'); try { - guild.dispatcher = connection.play(await ytdl(exports.getLinkFromID(v.video.videoId), { highWaterMark: 1024 * 1024 * 32 }), { type: 'opus' }) + console.log('[MUSIC DEBUG] getting link'); + let link = exports.getLinkFromID(v.video.videoId); + console.log('[MUSIC DEBUG] got link: ' + (message.guild.id == '410990517841690625' ? link : 'not woomy server')); - console.log('[MUSIC DEBUG] got dispatcher') + console.log('[MUSIC DEBUG] await ytdl'); + let y = await ytdl(link, { highWaterMark: 1024 * 1024 * 32 }); + console.log('[MUSIC DEBUG] got ytdl'); + + console.log('[MUSIC DEBUG] connection.play'); + guild.dispatcher = connection.play(y, { type: 'opus' }); + + console.log('[MUSIC DEBUG] got dispatcher'); } catch (err) { console.error(err);