diff --git a/commands/bank.js b/commands/bank.js index 4d6c343..4f84be2 100644 --- a/commands/bank.js +++ b/commands/bank.js @@ -165,7 +165,7 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Bank Notice:') - .setDescription(`Successfully deposited **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` to view your balance`) + .setDescription(`Successfully deposited **$${args[0].options[0].value.toFixed(2).toLocaleString()}**\nUse \`/bank balance\` to view your balance`) .setColor(client.config.Colors.Green); return interaction.send({ embeds: [successEmbed] }); @@ -193,7 +193,7 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Bank Notice:') - .setDescription(`Successfully withdrew **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` or \`/inventory wallet\` to view your cash balance`) + .setDescription(`Successfully withdrew **$${args[0].options[0].value.toFixed(2).toLocaleString()}**\nUse \`/bank balance\` to view your cash balance`) .setColor(client.config.Colors.Green); return interaction.send({ embeds: [successEmbed] }); @@ -248,9 +248,9 @@ module.exports = { balanceEmbed.setTitle('Personal Bank Records'); balanceEmbed.addFields( - { name: '**Bank**', value: `$${banking.guilds[GuildDB.serverID].bankAccount.balance.toFixed(2)}`, inline: true }, - { name: '**Cash**', value: `$${banking.guilds[GuildDB.serverID].bankAccount.cash.toFixed(2)}`, inline: true }, - { name: '**Total**', value: `$${(banking.guilds[GuildDB.serverID].bankAccount.balance + banking.guilds[GuildDB.serverID].bankAccount.cash).toFixed(2)}`, inline: true }); + { name: '**Bank**', value: `$${banking.guilds[GuildDB.serverID].bankAccount.balance.toFixed(2).toLocaleString()}`, inline: true }, + { name: '**Cash**', value: `$${banking.guilds[GuildDB.serverID].bankAccount.cash.toFixed(2).toLocaleString()}`, inline: true }, + { name: '**Total**', value: `$${(banking.guilds[GuildDB.serverID].bankAccount.balance + banking.guilds[GuildDB.serverID].bankAccount.cash).toFixed(2).toLocaleString()}`, inline: true }); } return interaction.send({ embeds: [balanceEmbed] }); @@ -260,7 +260,7 @@ module.exports = { if (banking.guilds[GuildDB.serverID].bankAccount.cash.toFixed(2) - args[0].options[1].value < 0) { let embed = new EmbedBuilder() - .setTitle('Non sufficient funds! Withdraw more cash') + .setDescription('**Bank Notice:** NSF. Non sufficient funds') .setColor(client.config.Colors.Red); return interaction.send({ embeds: [embed] }); @@ -309,7 +309,7 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Success') - .setDescription(`Successfully gave <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`) + .setDescription(`Successfully gave <@${targetUserID}> **$${args[0].options[1].value.toFixed(2).toLocaleString()}**`) .setColor(client.config.Colors.Green); return interaction.send({ embeds: [successEmbed] }); @@ -319,7 +319,7 @@ module.exports = { if (banking.guilds[GuildDB.serverID].bankAccount.balance.toFixed(2) - args[0].options[1].value < 0) { let embed = new EmbedBuilder() - .setTitle('Non sufficient funds! Withdraw more cash') + .setTitle('**Bank Notice:** NSF. Non sufficient funds') .setColor(client.config.Colors.Red); return interaction.send({ embeds: [embed] }); @@ -360,7 +360,7 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Bank Notice:') - .setDescription(`Successfully transfered <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`) + .setDescription(`Successfully transfered <@${targetUserID}> **$${args[0].options[1].value.toFixed(2).toLocaleString()}**`) .setColor(client.config.Colors.Green); return interaction.send({ embeds: [successEmbed] }); diff --git a/commands/money.js b/commands/money.js index f7b52b7..d0e6eff 100644 --- a/commands/money.js +++ b/commands/money.js @@ -115,7 +115,7 @@ module.exports = { }); const successEmbed = new EmbedBuilder() - .setDescription(`Successfully ${args[0] == 'add' ? 'added' : 'removed'} $${args[0].options[0].value.toFixed(2)} ${args[0] == 'add' ? 'to' : 'from'} <@${targetUserID}>'s balance`) + .setDescription(`Successfully ${args[0].name == 'add' ? 'added' : 'removed'} **$${args[0].options[0].value.toFixed(2).toLocaleString()}** ${args[0] == 'add' ? 'to' : 'from'} <@${targetUserID}>'s balance`) .setColor(client.config.Colors.Green); return interaction.send({ embeds: [successEmbed] }); diff --git a/package.json b/package.json index 0b20483..cf60c98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "5.11.7", + "version": "5.11.8", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {