mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
fix: indicate live track for duration
This commit is contained in:
1 parent
91570e7c2e
commit
0111d3af37
6 files changed
+71
-8
No files matched your search
@@ -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.`
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user