Skip to content

Commit

Permalink
Few more minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jul 24, 2024
1 parent 25b298d commit daf168f
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion commands/Economy/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class Balance extends Command {

const cashValue = await db.get(`servers.${msg.guild.id}.users.${mem.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);

const bank = BigInt((await db.get(`servers.${msg.guild.id}.users.${mem.id}.economy.bank`)) || 0);
Expand Down
1 change: 0 additions & 1 deletion commands/Economy/blackjack.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ class BlackJack extends Command {
const currencySymbol = (await db.get(`servers.${msg.guild.id}.economy.symbol`)) || '$';
const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);

const Arguments = args.join(' ').toLowerCase();
Expand Down
1 change: 0 additions & 1 deletion commands/Economy/crime.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class Crime extends Command {
// Get the user's net worth
const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);

const bank = BigInt((await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.bank`)) || 0);
Expand Down
1 change: 0 additions & 1 deletion commands/Economy/deposit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class Deposit extends Command {

const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);

const bank = BigInt((await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.bank`)) || 0);
Expand Down
2 changes: 1 addition & 1 deletion commands/Economy/remove-money.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RemoveMoney extends Command {
const newAmount = bank - amount;
await db.set(`servers.${msg.guild.id}.users.${mem.id}.economy.bank`, newAmount.toString());
} else {
const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const cashValue = await db.get(`servers.${msg.guild.id}.users.${mem.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);
Expand Down
1 change: 0 additions & 1 deletion commands/Economy/rob.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class Rob extends Command {

const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const authCash = cashValue === undefined ? startBalance : BigInt(cashValue);

const authBank = BigInt((await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.bank`)) || 0);
Expand Down
1 change: 0 additions & 1 deletion commands/Economy/slut.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class Slut extends Command {

const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);

const bank = BigInt((await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.bank`)) || 0);
Expand Down
1 change: 0 additions & 1 deletion commands/Economy/work.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class Work extends Command {

const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const oldBalance = cashValue === undefined ? startBalance : BigInt(cashValue);

const newBalance = oldBalance + BigInt(amount);
Expand Down

0 comments on commit daf168f

Please sign in to comment.