From 206972b487ea4a7c6fa7440ebb58f74414688b4c Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Tue, 25 Oct 2022 12:06:59 -0700 Subject: [PATCH] 13.1.4 debug /reset command --- commands/reset.js | 5 +++-- config/config.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/reset.js b/commands/reset.js index 307b068..331656f 100644 --- a/commands/reset.js +++ b/commands/reset.js @@ -1,6 +1,7 @@ -const { EmbedBuilder } = require('discord.js'); +const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); const { addInventory } = require('../structures/inventory'); const { addBank } = require('../structures/bank'); +const bitfieldCalculator = require('discord-bitfield-calculator'); module.exports = { name: "reset", @@ -102,7 +103,7 @@ module.exports = { } if (!bankingReset) { - const success = addBank(banking.guilds, GuildDB.serverID, targetUserID, client); + const success = addBank(banking.guilds, GuildDB.serverID, targetUserID, client, GuildDB.startingBalance); if (!success) { client.error(err); const embed = new EmbedBuilder() diff --git a/config/config.js b/config/config.js index 8ac5490..9cddc9a 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "13.1.3", // (major).(feature).(revision/bug/refactoring) + Version: "13.1.4", // (major).(feature).(revision/bug/refactoring) Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830",