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": {