mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
fix filters
This commit is contained in:
parent
ddd1ffff4f
commit
c2e189c2fa
4 changed files with 3 additions and 4 deletions
|
@ -26,7 +26,7 @@ class Filter extends Command {
|
||||||
const filter = args[0];
|
const filter = args[0];
|
||||||
if (!filter) return message.error("music/filter:MISSING_FILTER", { prefix: data.guild.prefix });
|
if (!filter) return message.error("music/filter:MISSING_FILTER", { prefix: data.guild.prefix });
|
||||||
|
|
||||||
if (filter === "off" && queue.filters?.length) {
|
if (filter === "off" && queue.filters.length) {
|
||||||
queue.setFilter(false);
|
queue.setFilter(false);
|
||||||
message.success("music/filter:REMOVING_FILTER");
|
message.success("music/filter:REMOVING_FILTER");
|
||||||
} else if (Object.keys(this.client.player.filters).includes(args[0])) {
|
} else if (Object.keys(this.client.player.filters).includes(args[0])) {
|
||||||
|
|
|
@ -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(this.client.player.filters[filterName] + " : " + (queue.filters[filterName] ? this.client.customEmojis.success : this.client.customEmojis.error));
|
array.push(filterName + " : " + (queue.filters[filterName] ? this.client.customEmojis.success : this.client.customEmojis.error));
|
||||||
});
|
});
|
||||||
|
|
||||||
const list = new Discord.MessageEmbed()
|
const list = new Discord.MessageEmbed()
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"EXAMPLES": "{{prefix}}lyrics Skyfall",
|
"EXAMPLES": "{{prefix}}lyrics Skyfall",
|
||||||
"LYRICS_OF": "🎤 {{songName}} lyrics",
|
"LYRICS_OF": "🎤 {{songName}} lyrics",
|
||||||
"AND_MORE": "\n**And more...**",
|
"AND_MORE": "\n**And more...**",
|
||||||
"REST": "Expand",
|
"CLICK_HERE": "Click here for full lyrics",
|
||||||
"MISSING_SONG_NAME": "Please specify a song name!",
|
"MISSING_SONG_NAME": "Please specify a song name!",
|
||||||
"NO_LYRICS_FOUND": "No lyrics found for `{{songName}}`!"
|
"NO_LYRICS_FOUND": "No lyrics found for `{{songName}}`!"
|
||||||
}
|
}
|
|
@ -5,7 +5,6 @@
|
||||||
"LYRICS_OF": "🎤 Текст {{songName}}",
|
"LYRICS_OF": "🎤 Текст {{songName}}",
|
||||||
"AND_MORE": "\n**и т.д...**",
|
"AND_MORE": "\n**и т.д...**",
|
||||||
"CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку на слова к этой песне",
|
"CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку на слова к этой песне",
|
||||||
"REST": "Больше",
|
|
||||||
"MISSING_SONG_NAME": "Укажите название трека!",
|
"MISSING_SONG_NAME": "Укажите название трека!",
|
||||||
"NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!"
|
"NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!"
|
||||||
}
|
}
|
Loading…
Reference in a new issue