маленькие изменения в отображении кредитов и np

This commit is contained in:
JonnyBro 2022-01-01 03:16:11 +05:00
parent 089c9d6452
commit 8baa6d8fdf
5 changed files with 7 additions and 7 deletions

View file

@ -29,7 +29,7 @@ class Deposit extends Command {
}; };
if (data.memberData.money < amount) return message.error("economy/deposit:NOT_ENOUGH_CREDIT", { if (data.memberData.money < amount) return message.error("economy/deposit:NOT_ENOUGH_CREDIT", {
money: `${amount} ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}` money: `**${amount}** ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`
}); });
data.memberData.money = data.memberData.money - amount; data.memberData.money = data.memberData.money - amount;
@ -37,7 +37,7 @@ class Deposit extends Command {
data.memberData.save(); data.memberData.save();
message.success("economy/deposit:SUCCESS", { message.success("economy/deposit:SUCCESS", {
money: amount money: `**${amount}** ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`
}); });
} }
}; };

View file

@ -29,7 +29,7 @@ class Withdraw extends Command {
}; };
if (data.memberData.bankSold < amount) return message.error("economy/withdraw:NOT_ENOUGH", { if (data.memberData.bankSold < amount) return message.error("economy/withdraw:NOT_ENOUGH", {
money: `${amount} ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}` money: `**${amount}** ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`
}); });
data.memberData.money = data.memberData.money + amount; data.memberData.money = data.memberData.money + amount;
@ -37,7 +37,7 @@ class Withdraw extends Command {
data.memberData.save(); data.memberData.save();
message.success("economy/withdraw:SUCCESS", { message.success("economy/withdraw:SUCCESS", {
money: `${amount} ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}` money: `**${amount}** ${this.client.getNoun(amount, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`
}); });
} }
}; };

View file

@ -31,7 +31,7 @@ class Np extends Command {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setAuthor(message.translate("music/queue:TITLE")) .setAuthor(message.translate("music/queue:TITLE"))
.setThumbnail(track.thumbnail) .setThumbnail(track.thumbnail)
.addField(message.translate("music/np:T_TITLE"), track.name + `\n${track.url}`) .addField(message.translate("music/np:T_TITLE"), `[${track.name}](${track.url})`)
.addField(message.translate("music/np:T_CHANNEL"), track.uploader.name ? track.uploader.name : "Отсутствует") .addField(message.translate("music/np:T_CHANNEL"), track.uploader.name ? track.uploader.name : "Отсутствует")
.addField(message.translate("music/np:T_DURATION"), `${queue.formattedCurrentTime} / ${track.formattedDuration}`) .addField(message.translate("music/np:T_DURATION"), `${queue.formattedCurrentTime} / ${track.formattedDuration}`)
.setColor(data.config.embed.color) .setColor(data.config.embed.color)

View file

@ -5,5 +5,5 @@
"MISSING_AMOUNT": "Укажите сумму!", "MISSING_AMOUNT": "Укажите сумму!",
"NO_CREDIT": "У вас нет кредитов!", "NO_CREDIT": "У вас нет кредитов!",
"NO_ENOUGH_CREDIT": "У вас нет `{{money}}`!", "NO_ENOUGH_CREDIT": "У вас нет `{{money}}`!",
"SUCCESS": "**{{money}}** кредитов внесено на ваш банковский счёт!" "SUCCESS": "{{money}} внесено на ваш банковский счёт!"
} }

View file

@ -5,5 +5,5 @@
"MISSING_AMOUNT": "Укажите сумму!", "MISSING_AMOUNT": "Укажите сумму!",
"NO_CREDIT": "Недостаточно кредитов на банковском счёте!", "NO_CREDIT": "Недостаточно кредитов на банковском счёте!",
"NOT_ENOUGH": "У вас должно быть хотя бы `{{money}}`!", "NOT_ENOUGH": "У вас должно быть хотя бы `{{money}}`!",
"SUCCESS": "Вы сняли **{{money}}**!" "SUCCESS": "Вы сняли {{money}}!"
} }