more debug

This commit is contained in:
Lukáš H 2020-06-06 10:18:53 +02:00
parent 8de3c6ccad
commit feab4749b3
No known key found for this signature in database
GPG key ID: 52AED802C323B705

View file

@ -200,9 +200,18 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) {
console.log('[MUSIC DEBUG] got v'); console.log('[MUSIC DEBUG] got v');
try { 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) { } catch (err) {
console.error(err); console.error(err);