mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 22:55:00 +05:00
fix lyrics and filters
This commit is contained in:
parent
e6d53e23fa
commit
ddd1ffff4f
3 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,7 @@ class Filters extends Command {
|
||||||
|
|
||||||
Object.keys(this.client.player.filters).forEach((filterName) => {
|
Object.keys(this.client.player.filters).forEach((filterName) => {
|
||||||
const array = filtersStatuses[0].length > filtersStatuses[1].length ? filtersStatuses[1] : filtersStatuses[0];
|
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()
|
const list = new Discord.MessageEmbed()
|
||||||
|
|
|
@ -36,7 +36,7 @@ class Lyrics extends Command {
|
||||||
let lyrics = await lyricsParse(songNameFormated, artistName) || "Не найдено!";
|
let lyrics = await lyricsParse(songNameFormated, artistName) || "Не найдено!";
|
||||||
|
|
||||||
if (lyrics.length > 2040) {
|
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) {
|
} else if (!lyrics.length) {
|
||||||
return message.error("music/lyrics:NO_LYRICS_FOUND", { songName });
|
return message.error("music/lyrics:NO_LYRICS_FOUND", { songName });
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"EXAMPLES": "{{prefix}}lyrics Skyfall",
|
"EXAMPLES": "{{prefix}}lyrics Skyfall",
|
||||||
"LYRICS_OF": "🎤 Текст {{songName}}",
|
"LYRICS_OF": "🎤 Текст {{songName}}",
|
||||||
"AND_MORE": "\n**и т.д...**",
|
"AND_MORE": "\n**и т.д...**",
|
||||||
|
"CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку на слова к этой песне",
|
||||||
"REST": "Больше",
|
"REST": "Больше",
|
||||||
"MISSING_SONG_NAME": "Укажите название трека!",
|
"MISSING_SONG_NAME": "Укажите название трека!",
|
||||||
"NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!"
|
"NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!"
|
||||||
|
|
Loading…
Reference in a new issue