Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix: Update duration format in places to have bold text
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Jul 16, 2023
1 parent 2f1974d commit 8ecad8a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions commands/nowplaying.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down Expand Up @@ -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
? ''
Expand Down
6 changes: 3 additions & 3 deletions commands/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions commands/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module.exports = {

return `**${
pageIndex * 10 + index + 1
}.** ${durationFormat} **[${track.title}](${track.url})**`;
}.** **${durationFormat} [${track.title}](${track.url})**`;
})
.join('\n');
}
Expand Down Expand Up @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion commands/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions commands/skip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
? ''
Expand Down

0 comments on commit 8ecad8a

Please sign in to comment.