update/no active bounties message

This commit is contained in:
SowinskiBraeden committed 2023-10-08 11:11:20 -07:00
1 parent c6b0528621
commit 1e94d6bce1
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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 });
+1 -1
View File
@@ -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": {