From 8f9c774f68cc35c7e1a9beb65e1d02e1f11cb0db Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Tue, 14 Mar 2023 19:45:50 -0400 Subject: [PATCH] removed negative check removed the if statement that checked if the new balance being set was below 0. this allows balances to go below 0 --- sugoncredit/sugoncredit.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sugoncredit/sugoncredit.py b/sugoncredit/sugoncredit.py index 209ea3a..4abb60b 100644 --- a/sugoncredit/sugoncredit.py +++ b/sugoncredit/sugoncredit.py @@ -112,9 +112,6 @@ class SugonCredit(commands.Cog): if new_bal > max_bal: await ctx.send(content=f"You are attempting to set {target.mention}'s balance to above {output_max_bal}. Please try again!") return - elif new_bal < 0: - await ctx.send(content=f"You are attempting to set {target.mention}'s balance to below 0. Please try again!") - return elif ctx.guild.id == 204965774618656769: logging_channel = self.bot.get_channel(1082495815878189076) cur.execute(f'''UPDATE credit @@ -165,10 +162,7 @@ class SugonCredit(commands.Cog): output_amount = (f'{val:,}') output_new_bal = (f'{new_bal:,}') output_max_bal = (f'{max_bal:,}') - if new_bal < 0: - await ctx.send(content=f"You are attempting to set {target.mention}'s balance to below 0. Please try again!") - return - elif new_bal > max_bal: + if new_bal > max_bal: await ctx.send(content=f"You are attempting to set {target.mention}'s balance to above {output_max_bal}. Please try again!") elif ctx.guild.id == 204965774618656769: cur.execute(f'''UPDATE credit