diff --git a/index.js b/index.js index e01784b5..7ac4df69 100644 --- a/index.js +++ b/index.js @@ -110,10 +110,6 @@ class Bot extends Client { client.on(eventName, (...args) => eventModule.run(client, ...args)); } - async unloadEvent(_eventPath, _eventName) { - // Code here - } - /* SETTINGS FUNCTIONS These functions are used by any and all location in the bot that wants to either read the current *complete* guild settings (default + overrides, merged) or that diff --git a/slash_commands/Economy/add-money.js b/slash_commands/Economy/add-money.js index 6ccc8ad7..bac25fcc 100644 --- a/slash_commands/Economy/add-money.js +++ b/slash_commands/Economy/add-money.js @@ -79,12 +79,8 @@ exports.run = async (interaction) => { const currencySymbol = (await db.get(`servers.${interaction.guild.id}.economy.symbol`)) || '$'; if (isNaN(amount)) return interaction.client.util.errorEmbed(interaction, 'Incorrect Usage'); - if (amount > 1000000000000) - return interaction.client.util.errorEmbed( - interaction, - `You can't add more than 1 Trillion to a role.`, - 'Invalid Amount', - ); + if (amount === Infinity) + return interaction.client.util.errorEmbed(interaction, "You can't add Infinity to a member", 'Invalid Amount'); const members = [...role.members.values()]; diff --git a/slash_commands/Economy/remove-money.js b/slash_commands/Economy/remove-money.js index fab4e382..80b37b51 100644 --- a/slash_commands/Economy/remove-money.js +++ b/slash_commands/Economy/remove-money.js @@ -40,7 +40,7 @@ exports.run = async (interaction) => { if (!target.user) return interaction.client.util.errorEmbed(interaction, 'Invalid Member'); if (target.user.bot) return interaction.client.util.errorEmbed(interaction, "You can't remove money from a bot."); - amount = BigInt(parseInt(amount)); + amount = BigInt(amount); if (destination === 'bank') { const bank = BigInt((await db.get(`servers.${interaction.guild.id}.users.${target.user.id}.economy.bank`)) || 0); const newAmount = bank - amount;