This commit is contained in:
NoLogicAlan committed 2026-09-16 03:15:16 +03:00
1 parent 8cd0384f75
commit 990cc68100
10 files changed
+223 -17

No files matched your search

+2 -2
View File
@@ -124,7 +124,7 @@ export async function run(message) {
.setColor(getGlobalColor())
.setTitle(`🎵 ${Utils.truncate(displayTitle, 50)}`)
.setDescription(singleDesc.slice(0, MAX_DESC))
.setFooter({ text: this.t(message, "responses.lyrics.nodeLinkFooter", { lines: totalLines }) });
.setFooter({ text: this.t(message, "responses.lyrics.sourceFooter", { source: result.source, lines: totalLines }) });
if (current.thumbnail) singleEmbed.setThumbnail(current.thumbnail);
return message.reply({ embeds: [singleEmbed] });
}
@@ -150,7 +150,7 @@ export async function run(message) {
.setDescription(desc.slice(0, MAX_DESC))
.setFooter({ text: expired
? this.t(message, "responses.lyrics.controlsExpired", { lines: totalLines })
: this.t(message, "responses.lyrics.nodeLinkFooter", { lines: totalLines }) });
: this.t(message, "responses.lyrics.sourceFooter", { source: result.source, lines: totalLines }) });
if (current.thumbnail) b.setThumbnail(current.thumbnail);
return { embeds: [b] };
};
+4 -3
View File
@@ -82,11 +82,12 @@ export async function openLyricsViewer(bot, msg, player, refresh, session) {
player.queue.getCurrent()?.title?.replace(/\(Official.*?\)/gi, '').trim() ?? '',
50
);
const lyricsSource = lyricsResult.source || "Lyrics";
const footerText = closed
? `👋 Lyrics closed • NodeLink • ${totalLines} lines`
? `👋 Lyrics closed • ${lyricsSource} • ${totalLines} lines`
: expired
? `⌛ Controls expired • NodeLink • ${totalLines} lines`
: `NodeLink • ${totalLines} lines total${lyricsResult.synced ? ' • Synced' : ''}`;
? `⌛ Controls expired • ${lyricsSource} • ${totalLines} lines`
: `${lyricsSource} • ${totalLines} lines total${lyricsResult.synced ? ' • Synced' : ''}`;
const desc = [
`**${title}**${syncBadge} • Page ${pageIdx + 1}/${totalPages}`,
``,