From 95703f39086eebb66db0462c71913dee8728f48e Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 11 Oct 2022 16:12:41 -0700 Subject: [PATCH] debug undefined guildID & misspelled guilds --- commands/bank.js | 10 +++++----- commands/fine.js | 4 ++-- commands/money.js | 4 ++-- commands/work.js | 4 ++-- config/config.js | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/commands/bank.js b/commands/bank.js index c4567a9..b82ee57 100644 --- a/commands/bank.js +++ b/commands/bank.js @@ -119,8 +119,8 @@ module.exports = { if (!banking) { banking = { userID: interaction.member.user.id, - guidls: { - [guildID]: { + guilds: { + [GuildDB.serverID]: { account: { balance: GuildDB.startingBalance, cash: 0.00, @@ -304,8 +304,8 @@ module.exports = { if (!targetUserBanking) { targetUserBanking = { userID: targetUserID, - guidls: { - [guildID]: { + guilds: { + [GuildDB.serverID]: { account: { balance: GuildDB.startingBalance, cash: 0.00, @@ -470,7 +470,7 @@ module.exports = { if (!targetUserBanking) { targetUserBanking = { userID: targetUserID, - guidls: { + guilds: { [GuildDB.serverID]: { account: { balance: GuildDB.startingBalance, diff --git a/commands/fine.js b/commands/fine.js index 0091713..001e2b2 100644 --- a/commands/fine.js +++ b/commands/fine.js @@ -63,8 +63,8 @@ module.exports = { if (!banking) { banking = { userID: targetUserID, - guidls: { - [guildID]: { + guilds: { + [GuildDB.serverID]: { account: { balance: GuildDB.startingBalance, cash: 0.00, diff --git a/commands/money.js b/commands/money.js index bba8d21..0b62298 100644 --- a/commands/money.js +++ b/commands/money.js @@ -60,8 +60,8 @@ module.exports = { if (!banking) { banking = { userID: targetUserID, - guidls: { - [guildID]: { + guilds: { + [GuildDB.serverID]: { account: { balance: GuildDB.startingBalance, cash: 0.00, diff --git a/commands/work.js b/commands/work.js index 5e67752..8cde5b4 100644 --- a/commands/work.js +++ b/commands/work.js @@ -93,8 +93,8 @@ module.exports = { if (!banking) { banking = { userID: interaction.member.user.id, - guidls: { - [guildID]: { + guilds: { + [GuildDB.serverID]: { account: { balance: GuildDB.startingBalance, cash: 0.00, diff --git a/config/config.js b/config/config.js index 80c4c30..85b1535 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "12.7.4", + Version: "12.7.6", Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830",