mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: Update duration format in places to have bold text
This commit is contained in:
1 parent
2f1974d2ba
commit
8ecad8a02e
5 files changed
+14
-14
No files matched your search
@@ -83,16 +83,16 @@ module.exports = {
|
|||||||
'Unavailable';
|
'Unavailable';
|
||||||
const queueLength = queue.tracks.data.length;
|
const queueLength = queue.tracks.data.length;
|
||||||
const timestamp = queue.node.getTimestamp();
|
const timestamp = queue.node.getTimestamp();
|
||||||
let bar = `\`${
|
let bar = `**\`${
|
||||||
timestamp.current.label
|
timestamp.current.label
|
||||||
}\` ${queue.node.createProgressBar({
|
}\`** ${queue.node.createProgressBar({
|
||||||
queue: false,
|
queue: false,
|
||||||
length: progressBarOptions.length ?? 12,
|
length: progressBarOptions.length ?? 12,
|
||||||
timecodes: progressBarOptions.timecodes ?? false,
|
timecodes: progressBarOptions.timecodes ?? false,
|
||||||
indicator: progressBarOptions.indicator ?? '🔘',
|
indicator: progressBarOptions.indicator ?? '🔘',
|
||||||
leftChar: progressBarOptions.leftChar ?? '▬',
|
leftChar: progressBarOptions.leftChar ?? '▬',
|
||||||
rightChar: progressBarOptions.rightChar ?? '▬'
|
rightChar: progressBarOptions.rightChar ?? '▬'
|
||||||
})} \`${timestamp.total.label}\``;
|
})} **\`${timestamp.total.label}\`**`;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
currentTrack.raw.duration === 0 ||
|
currentTrack.raw.duration === 0 ||
|
||||||
@@ -233,7 +233,7 @@ module.exports = {
|
|||||||
iconURL: interaction.user.avatarURL()
|
iconURL: interaction.user.avatarURL()
|
||||||
})
|
})
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` +
|
`**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` +
|
||||||
`${
|
`${
|
||||||
queue.repeatMode === 0
|
queue.repeatMode === 0
|
||||||
? ''
|
? ''
|
||||||
|
|||||||
+3
-3
@@ -179,7 +179,7 @@ module.exports = {
|
|||||||
.setDescription(
|
.setDescription(
|
||||||
`**${
|
`**${
|
||||||
embedIcons.success
|
embedIcons.success
|
||||||
} Added playlist to queue**\n${durationFormat} **[${
|
} Added playlist to queue**\n**${durationFormat} [${
|
||||||
track.title
|
track.title
|
||||||
}](${track.url})**\n\nAnd **${
|
}](${track.url})**\n\nAnd **${
|
||||||
searchResult.tracks.length - 1
|
searchResult.tracks.length - 1
|
||||||
@@ -203,7 +203,7 @@ module.exports = {
|
|||||||
iconURL: interaction.user.avatarURL()
|
iconURL: interaction.user.avatarURL()
|
||||||
})
|
})
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${embedIcons.audioStartedPlaying} Started playing**\n${durationFormat} **[${track.title}](${track.url})**`
|
`**${embedIcons.audioStartedPlaying} Started playing**\n**${durationFormat} [${track.title}](${track.url})**`
|
||||||
)
|
)
|
||||||
.setThumbnail(track.thumbnail)
|
.setThumbnail(track.thumbnail)
|
||||||
.setColor(embedColors.colorSuccess)
|
.setColor(embedColors.colorSuccess)
|
||||||
@@ -221,7 +221,7 @@ module.exports = {
|
|||||||
iconURL: interaction.user.avatarURL()
|
iconURL: interaction.user.avatarURL()
|
||||||
})
|
})
|
||||||
.setDescription(
|
.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)
|
.setThumbnail(track.thumbnail)
|
||||||
.setColor(embedColors.colorSuccess)
|
.setColor(embedColors.colorSuccess)
|
||||||
|
|||||||
+4
-4
@@ -98,7 +98,7 @@ module.exports = {
|
|||||||
|
|
||||||
return `**${
|
return `**${
|
||||||
pageIndex * 10 + index + 1
|
pageIndex * 10 + index + 1
|
||||||
}.** ${durationFormat} **[${track.title}](${track.url})**`;
|
}.** **${durationFormat} [${track.title}](${track.url})**`;
|
||||||
})
|
})
|
||||||
.join('\n');
|
.join('\n');
|
||||||
}
|
}
|
||||||
@@ -146,16 +146,16 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const timestamp = queue.node.getTimestamp();
|
const timestamp = queue.node.getTimestamp();
|
||||||
let bar = `\`${
|
let bar = `**\`${
|
||||||
timestamp.current.label
|
timestamp.current.label
|
||||||
}\` ${queue.node.createProgressBar({
|
}\`** ${queue.node.createProgressBar({
|
||||||
queue: false,
|
queue: false,
|
||||||
length: progressBarOptions.length ?? 12,
|
length: progressBarOptions.length ?? 12,
|
||||||
timecodes: progressBarOptions.timecodes ?? false,
|
timecodes: progressBarOptions.timecodes ?? false,
|
||||||
indicator: progressBarOptions.indicator ?? '🔘',
|
indicator: progressBarOptions.indicator ?? '🔘',
|
||||||
leftChar: progressBarOptions.leftChar ?? '▬',
|
leftChar: progressBarOptions.leftChar ?? '▬',
|
||||||
rightChar: progressBarOptions.rightChar ?? '▬'
|
rightChar: progressBarOptions.rightChar ?? '▬'
|
||||||
})} \`${timestamp.total.label}\``;
|
})} **\`${timestamp.total.label}\`**`;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
currentTrack.raw.duration === 0 ||
|
currentTrack.raw.duration === 0 ||
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ module.exports = {
|
|||||||
iconURL: interaction.user.avatarURL()
|
iconURL: interaction.user.avatarURL()
|
||||||
})
|
})
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${embedIcons.success} Removed track**\n${durationFormat} **[${removedTrack.title}](${removedTrack.url})**`
|
`**${embedIcons.success} Removed track**\n**${durationFormat} [${removedTrack.title}](${removedTrack.url})**`
|
||||||
)
|
)
|
||||||
.setThumbnail(removedTrack.thumbnail)
|
.setThumbnail(removedTrack.thumbnail)
|
||||||
.setColor(embedColors.colorSuccess)
|
.setColor(embedColors.colorSuccess)
|
||||||
|
|||||||
+2
-2
@@ -73,7 +73,7 @@ module.exports = {
|
|||||||
iconURL: interaction.user.avatarURL()
|
iconURL: interaction.user.avatarURL()
|
||||||
})
|
})
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**`
|
`**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**`
|
||||||
)
|
)
|
||||||
.setThumbnail(skippedTrack.thumbnail)
|
.setThumbnail(skippedTrack.thumbnail)
|
||||||
.setColor(embedColors.colorSuccess)
|
.setColor(embedColors.colorSuccess)
|
||||||
@@ -120,7 +120,7 @@ module.exports = {
|
|||||||
iconURL: interaction.user.avatarURL()
|
iconURL: interaction.user.avatarURL()
|
||||||
})
|
})
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` +
|
`**${embedIcons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${skippedTrack.url})**` +
|
||||||
`${
|
`${
|
||||||
queue.repeatMode === 0
|
queue.repeatMode === 0
|
||||||
? ''
|
? ''
|
||||||
|
|||||||
Reference in new issue
Block a user