mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
маленькие изменения в отображении кредитов и np
This commit is contained in:
parent
089c9d6452
commit
8baa6d8fdf
5 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ class Deposit extends Command {
|
|||
};
|
||||
|
||||
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;
|
||||
|
@ -37,7 +37,7 @@ class Deposit extends Command {
|
|||
data.memberData.save();
|
||||
|
||||
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"))}`
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -29,7 +29,7 @@ class Withdraw extends Command {
|
|||
};
|
||||
|
||||
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;
|
||||
|
@ -37,7 +37,7 @@ class Withdraw extends Command {
|
|||
data.memberData.save();
|
||||
|
||||
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"))}`
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -31,7 +31,7 @@ class Np extends Command {
|
|||
const embed = new Discord.MessageEmbed()
|
||||
.setAuthor(message.translate("music/queue:TITLE"))
|
||||
.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_DURATION"), `${queue.formattedCurrentTime} / ${track.formattedDuration}`)
|
||||
.setColor(data.config.embed.color)
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
"MISSING_AMOUNT": "Укажите сумму!",
|
||||
"NO_CREDIT": "У вас нет кредитов!",
|
||||
"NO_ENOUGH_CREDIT": "У вас нет `{{money}}`!",
|
||||
"SUCCESS": "**{{money}}** кредитов внесено на ваш банковский счёт!"
|
||||
"SUCCESS": "{{money}} внесено на ваш банковский счёт!"
|
||||
}
|
|
@ -5,5 +5,5 @@
|
|||
"MISSING_AMOUNT": "Укажите сумму!",
|
||||
"NO_CREDIT": "Недостаточно кредитов на банковском счёте!",
|
||||
"NOT_ENOUGH": "У вас должно быть хотя бы `{{money}}`!",
|
||||
"SUCCESS": "Вы сняли **{{money}}**!"
|
||||
"SUCCESS": "Вы сняли {{money}}!"
|
||||
}
|
Loading…
Reference in a new issue