From 8ecad8a02e3ca765bed74db0eb0b351a06813730 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 16 Jul 2023 18:08:37 +0200 Subject: [PATCH] fix: Update duration format in places to have bold text --- commands/nowplaying.js | 8 ++++---- commands/play.js | 6 +++--- commands/queue.js | 8 ++++---- commands/remove.js | 2 +- commands/skip.js | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/commands/nowplaying.js b/commands/nowplaying.js index ec60973..fed89fc 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -83,16 +83,16 @@ module.exports = { 'Unavailable'; const queueLength = queue.tracks.data.length; const timestamp = queue.node.getTimestamp(); - let bar = `\`${ + let bar = `**\`${ timestamp.current.label - }\` ${queue.node.createProgressBar({ + }\`** ${queue.node.createProgressBar({ queue: false, length: progressBarOptions.length ?? 12, timecodes: progressBarOptions.timecodes ?? false, indicator: progressBarOptions.indicator ?? '🔘', leftChar: progressBarOptions.leftChar ?? '▬', rightChar: progressBarOptions.rightChar ?? '▬' - })} \`${timestamp.total.label}\``; + })} **\`${timestamp.total.label}\`**`; if ( currentTrack.raw.duration === 0 || @@ -233,7 +233,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` + + `**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` + `${ queue.repeatMode === 0 ? '' diff --git a/commands/play.js b/commands/play.js index b60b7b6..4e18996 100644 --- a/commands/play.js +++ b/commands/play.js @@ -179,7 +179,7 @@ module.exports = { .setDescription( `**${ embedIcons.success - } Added playlist to queue**\n${durationFormat} **[${ + } Added playlist to queue**\n**${durationFormat} [${ track.title }](${track.url})**\n\nAnd **${ searchResult.tracks.length - 1 @@ -203,7 +203,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.audioStartedPlaying} Started playing**\n${durationFormat} **[${track.title}](${track.url})**` + `**${embedIcons.audioStartedPlaying} Started playing**\n**${durationFormat} [${track.title}](${track.url})**` ) .setThumbnail(track.thumbnail) .setColor(embedColors.colorSuccess) @@ -221,7 +221,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `${embedIcons.success} **Added to queue**\n${durationFormat} **[${track.title}](${track.url})**` + `${embedIcons.success} **Added to queue**\n**${durationFormat} [${track.title}](${track.url})**` ) .setThumbnail(track.thumbnail) .setColor(embedColors.colorSuccess) diff --git a/commands/queue.js b/commands/queue.js index 1179cc9..060434f 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -98,7 +98,7 @@ module.exports = { return `**${ pageIndex * 10 + index + 1 - }.** ${durationFormat} **[${track.title}](${track.url})**`; + }.** **${durationFormat} [${track.title}](${track.url})**`; }) .join('\n'); } @@ -146,16 +146,16 @@ module.exports = { }); } else { const timestamp = queue.node.getTimestamp(); - let bar = `\`${ + let bar = `**\`${ timestamp.current.label - }\` ${queue.node.createProgressBar({ + }\`** ${queue.node.createProgressBar({ queue: false, length: progressBarOptions.length ?? 12, timecodes: progressBarOptions.timecodes ?? false, indicator: progressBarOptions.indicator ?? '🔘', leftChar: progressBarOptions.leftChar ?? '▬', rightChar: progressBarOptions.rightChar ?? '▬' - })} \`${timestamp.total.label}\``; + })} **\`${timestamp.total.label}\`**`; if ( currentTrack.raw.duration === 0 || diff --git a/commands/remove.js b/commands/remove.js index 6a4d1e4..c0d33d9 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -73,7 +73,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.success} Removed track**\n${durationFormat} **[${removedTrack.title}](${removedTrack.url})**` + `**${embedIcons.success} Removed track**\n**${durationFormat} [${removedTrack.title}](${removedTrack.url})**` ) .setThumbnail(removedTrack.thumbnail) .setColor(embedColors.colorSuccess) diff --git a/commands/skip.js b/commands/skip.js index 731835f..51e4995 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -73,7 +73,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` + `**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` ) .setThumbnail(skippedTrack.thumbnail) .setColor(embedColors.colorSuccess) @@ -120,7 +120,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` + + `**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` + `${ queue.repeatMode === 0 ? ''