fix: indicate live track for duration

This commit is contained in:
Marius Begby committed 2023-08-25 23:09:49 +02:00
1 parent 91570e7c2e
commit 0111d3af37
6 files changed
+71 -8

No files matched your search

+8
View File
@@ -97,6 +97,10 @@ module.exports = {
let durationFormat =
track.raw.duration === 0 || track.duration === '0:00' ? '' : `\`${track.duration}\``;
if (track.raw.live) {
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
}
return `**${pageIndex * 10 + index + 1}.** **${durationFormat} [${track.title}](${track.url})**`;
})
.join('\n');
@@ -157,6 +161,10 @@ module.exports = {
bar = '_No duration available._';
}
if (currentTrack.raw.live) {
bar = `**\`${embedOptions.icons.liveTrack} LIVE\`** - Playing continuously from live source.`;
}
logger.debug(
`[Shard ${interaction.guild.shardId}] User used command ${interaction.commandName} and got queue in reply with current track.`
);