From 62e6e8cbadb1f20eca82f04692f98b47e3eb58ed Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 30 Dec 2021 20:12:46 +0500 Subject: [PATCH] fix money --- commands/Economy/money.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/commands/Economy/money.js b/commands/Economy/money.js index 499aa89b..5641d927 100644 --- a/commands/Economy/money.js +++ b/commands/Economy/money.js @@ -54,15 +54,9 @@ class Credits extends Command { dynamic: true, format: "png" })) - .addField(message.translate("economy/profile:CASH"), message.translate("economy/profile:MONEY", { - money: `**${memberData.money}** ${this.client.getNoun(memberData.money, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}` - }), true) - .addField(message.translate("economy/profile:BANK"), message.translate("economy/profile:MONEY", { - money: `**${memberData.bankSold}** ${this.client.getNoun(memberData.bankSold, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}` - }), true) - .addField(message.translate("economy/profile:GLOBAL"), message.translate("economy/profile:MONEY", { - money: `**${globalMoney}** ${this.client.getNoun(globalMoney, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}` - }), true) + .addField(message.translate("economy/profile:CASH"), `**${memberData.money}** ${this.client.getNoun(memberData.money, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`, true) + .addField(message.translate("economy/profile:BANK"), `**${memberData.bankSold}** ${this.client.getNoun(memberData.bankSold, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`, true) + .addField(message.translate("economy/profile:GLOBAL"), `**${globalMoney}** ${this.client.getNoun(globalMoney, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`, true) .setColor(this.client.config.embed.color) .setFooter(this.client.config.embed.footer); message.channel.send(embed);