From ddd1ffff4fe902a4e4d6899fde1fc77816e0411d Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 13:22:43 +0500 Subject: [PATCH] fix lyrics and filters --- commands/Music/filters.js | 2 +- commands/Music/lyrics.js | 2 +- languages/ru-RU/music/lyrics.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/Music/filters.js b/commands/Music/filters.js index 5b229dd5..a242457d 100644 --- a/commands/Music/filters.js +++ b/commands/Music/filters.js @@ -28,7 +28,7 @@ class Filters extends Command { Object.keys(this.client.player.filters).forEach((filterName) => { const array = filtersStatuses[0].length > filtersStatuses[1].length ? filtersStatuses[1] : filtersStatuses[0]; - array.push(FiltersList[filterName] + " : " + (queue.filters[filterName] ? this.client.customEmojis.success : this.client.customEmojis.error)); + array.push(this.client.player.filters[filterName] + " : " + (queue.filters[filterName] ? this.client.customEmojis.success : this.client.customEmojis.error)); }); const list = new Discord.MessageEmbed() diff --git a/commands/Music/lyrics.js b/commands/Music/lyrics.js index bbe19054..061cc5dd 100644 --- a/commands/Music/lyrics.js +++ b/commands/Music/lyrics.js @@ -36,7 +36,7 @@ class Lyrics extends Command { let lyrics = await lyricsParse(songNameFormated, artistName) || "Не найдено!"; if (lyrics.length > 2040) { - lyrics = lyrics.substr(0, 2000) + message.translate("music/lyrics:AND_MORE") + " [" + message.translate("music/lyrics:CLICK_HERE") + "]" + `https://www.musixmatch.com/search/${songName}`; + lyrics = lyrics.substr(0, 2000) + message.translate("music/lyrics:AND_MORE") + "\n[" + message.translate("music/lyrics:CLICK_HERE") + "]" + `(https://www.musixmatch.com/search/${songName.replace(" ", "+")})`; } else if (!lyrics.length) { return message.error("music/lyrics:NO_LYRICS_FOUND", { songName }); }; diff --git a/languages/ru-RU/music/lyrics.json b/languages/ru-RU/music/lyrics.json index ab554689..e127fe99 100644 --- a/languages/ru-RU/music/lyrics.json +++ b/languages/ru-RU/music/lyrics.json @@ -4,6 +4,7 @@ "EXAMPLES": "{{prefix}}lyrics Skyfall", "LYRICS_OF": "🎤 Текст {{songName}}", "AND_MORE": "\n**и т.д...**", + "CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку на слова к этой песне", "REST": "Больше", "MISSING_SONG_NAME": "Укажите название трека!", "NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!"