mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix: Support custom emojis in config for liveTrack icon
This commit is contained in:
1 parent
0111d3af37
commit
97ffa12703
6 files changed
+9
-9
No files matched your search
@@ -86,7 +86,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (currentTrack.raw.live) {
|
||||
bar = `**\`${embedOptions.icons.liveTrack} LIVE\`** - Playing continuously from live source.`;
|
||||
bar = `${embedOptions.icons.liveTrack} **\`LIVE\`** - Playing continuously from live source.`;
|
||||
}
|
||||
|
||||
const nowPlayingActionRow = new ActionRowBuilder().addComponents(
|
||||
@@ -214,7 +214,7 @@ module.exports = {
|
||||
: `\`${skippedTrack.duration}\``;
|
||||
|
||||
if (skippedTrack.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
queue.node.skip();
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = {
|
||||
: `\`${queue.currentTrack.duration}\``;
|
||||
|
||||
if (queue.currentTrack.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
|
||||
// change paused state to opposite of current state
|
||||
|
||||
@@ -269,7 +269,7 @@ module.exports = {
|
||||
let durationFormat = track.raw.duration === 0 || track.duration === '0:00' ? '' : `\`${track.duration}\``;
|
||||
|
||||
if (track.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
|
||||
if (searchResult.playlist && searchResult.tracks.length > 1) {
|
||||
|
||||
@@ -98,7 +98,7 @@ module.exports = {
|
||||
track.raw.duration === 0 || track.duration === '0:00' ? '' : `\`${track.duration}\``;
|
||||
|
||||
if (track.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
|
||||
return `**${pageIndex * 10 + index + 1}.** **${durationFormat} [${track.title}](${track.url})**`;
|
||||
@@ -162,7 +162,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (currentTrack.raw.live) {
|
||||
bar = `**\`${embedOptions.icons.liveTrack} LIVE\`** - Playing continuously from live source.`;
|
||||
bar = `${embedOptions.icons.liveTrack} **\`LIVE\`** - Playing continuously from live source.`;
|
||||
}
|
||||
|
||||
logger.debug(
|
||||
|
||||
@@ -60,7 +60,7 @@ module.exports = {
|
||||
removedTrack.raw.duration === 0 || removedTrack.duration === '0:00' ? '' : `\`${removedTrack.duration}\``;
|
||||
|
||||
if (removedTrack.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
|
||||
logger.debug(
|
||||
|
||||
@@ -60,7 +60,7 @@ module.exports = {
|
||||
: `\`${skippedTrack.duration}\``;
|
||||
|
||||
if (skippedTrack.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
|
||||
queue.node.skipTo(skipToTrack - 1);
|
||||
@@ -106,7 +106,7 @@ module.exports = {
|
||||
: `\`${skippedTrack.duration}\``;
|
||||
|
||||
if (skippedTrack.raw.live) {
|
||||
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
|
||||
durationFormat = `${embedOptions.icons.liveTrack} \`LIVE\``;
|
||||
}
|
||||
queue.node.skip();
|
||||
|
||||
|
||||
Reference in new issue
Block a user