From 1e94d6bce11007f19d2114dd204511f9375dd800 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 8 Oct 2023 11:11:20 -0700 Subject: [PATCH] update/no active bounties message --- commands/bounty.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/bounty.js b/commands/bounty.js index 33fe865..7c0bd68 100644 --- a/commands/bounty.js +++ b/commands/bounty.js @@ -193,6 +193,7 @@ module.exports = { .setColor(client.config.Colors.Default) .setDescription('**Active Boutnies**'); + if (activeBounties.length == 0) bountiesEmbed.setDescription('**There are No Active Boutnies**') for (let i = 0; i < activeBounties.length; i++) { for (let j = 0; j < activeBounties[i].bounties.length; j++) { bountiesEmbed.addFields({ name: `${activeBounties[i].gamertag} has a:`, value: `**$${activeBounties[i].bounties[j].value.toFixed(2).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}** bounty set by ${activeBounties[i].bounties[j].setBy == null ? 'Anonymous' : `<@${activeBounties[i].bounties[j].setBy}>`}`, inline: false }); diff --git a/package.json b/package.json index 0be8741..02a3ae9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "10.4.0", + "version": "10.4.1", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {