better bank command feedback
This commit is contained in:
3 files changed
+11
-11
No files matched your search
+9
-9
@@ -165,7 +165,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.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);
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
@@ -193,7 +193,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.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);
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
@@ -248,9 +248,9 @@ module.exports = {
|
|||||||
|
|
||||||
balanceEmbed.setTitle('Personal Bank Records');
|
balanceEmbed.setTitle('Personal Bank Records');
|
||||||
balanceEmbed.addFields(
|
balanceEmbed.addFields(
|
||||||
{ name: '**Bank**', value: `$${banking.guilds[GuildDB.serverID].bankAccount.balance.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)}`, 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)}`, 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] });
|
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) {
|
if (banking.guilds[GuildDB.serverID].bankAccount.cash.toFixed(2) - args[0].options[1].value < 0) {
|
||||||
let embed = new EmbedBuilder()
|
let embed = new EmbedBuilder()
|
||||||
.setTitle('Non sufficient funds! Withdraw more cash')
|
.setDescription('**Bank Notice:** NSF. Non sufficient funds')
|
||||||
.setColor(client.config.Colors.Red);
|
.setColor(client.config.Colors.Red);
|
||||||
|
|
||||||
return interaction.send({ embeds: [embed] });
|
return interaction.send({ embeds: [embed] });
|
||||||
@@ -309,7 +309,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Success')
|
.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);
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
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) {
|
if (banking.guilds[GuildDB.serverID].bankAccount.balance.toFixed(2) - args[0].options[1].value < 0) {
|
||||||
let embed = new EmbedBuilder()
|
let embed = new EmbedBuilder()
|
||||||
.setTitle('Non sufficient funds! Withdraw more cash')
|
.setTitle('**Bank Notice:** NSF. Non sufficient funds')
|
||||||
.setColor(client.config.Colors.Red);
|
.setColor(client.config.Colors.Red);
|
||||||
|
|
||||||
return interaction.send({ embeds: [embed] });
|
return interaction.send({ embeds: [embed] });
|
||||||
@@ -360,7 +360,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.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);
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|||||||
+1
-1
@@ -115,7 +115,7 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
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);
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "5.11.7",
|
"version": "5.11.8",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user