music: debug time

This commit is contained in:
Cynthia Foxwell 2022-04-18 23:08:22 -06:00
parent f45c24dcfc
commit d7473c45f3

View file

@ -119,6 +119,12 @@ async function createVoiceConnection(guild_id, voice_id, text_id) {
connection._music_eventEnd = async function () {
if (connection._music_queue.length > 0) {
const next = connection._music_queue.splice(0, 1);
hf.bot.guilds
.get(guild_id)
.channels.get(text_id)
.createMessage(
`DEBUG: \`\`\`\nnext = ${next}\nnext.url = ${next.url}\nnext.type = ${next.type}\nnext.addedBy = ${next.addedBy}\n\nqueue length: ${connect._music_queue.length}\n\`\`\``
);
await enqueue(
guild_id,
voice_id,