From 9a2379919c2c9eaaf2e2abb47ce9a2389df350a0 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Fri, 28 Jul 2023 10:56:42 +0200 Subject: [PATCH] debug --- src/commands/player/lyrics.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/player/lyrics.js b/src/commands/player/lyrics.js index 184b015..c4e0f65 100644 --- a/src/commands/player/lyrics.js +++ b/src/commands/player/lyrics.js @@ -161,8 +161,10 @@ module.exports = { // If message length is too long, split into multiple messages if (lyricsResult.lyrics.length > 3800) { + logger.info(`[Shard ${interaction.guild.shardId}] Lyrics too long, splitting into multiple messages.`); const messageCount = Math.ceil(lyricsResult.lyrics.length / 3800); for (let i = 0; i < messageCount; i++) { + logger.info(`[Shard ${interaction.guild.shardId}] Sending message ${i + 1} of ${messageCount}.`); const message = lyricsResult.lyrics.slice(i * 3800, (i + 1) * 3800); if (i === 0) { await interaction.editReply({ @@ -179,6 +181,7 @@ module.exports = { }); continue; } else { + logger.info(`[Shard ${interaction.guild.shardId}] ELSE.`); await interaction.channel.send({ embeds: [ new EmbedBuilder()