From c2b98596216ed9d746f4de6ee2d25b29abe81ec2 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 23 Jul 2023 11:04:49 -0700 Subject: [PATCH] debug failed nsf check in bounty --- commands/bounty.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/bounty.js b/commands/bounty.js index 7287a27..7104533 100644 --- a/commands/bounty.js +++ b/commands/bounty.js @@ -77,7 +77,7 @@ module.exports = { if (!success) return client.sendInternalError(interaction, 'Failed to add bank'); } - if (args[0].options[0].value > banking.guilds[GuildDB.serverID].balance) { + if (args[0].options[1].value > banking.guilds[GuildDB.serverID].balance) { let nsf = new EmbedBuilder() .setDescription('**Bank Notice:** NSF. Non sufficient funds') .setColor(client.config.Colors.Red); diff --git a/package.json b/package.json index b324cf8..ffaa4e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "8.2.8", + "version": "8.2.9", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {