From ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2 Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Tue, 26 May 2020 09:26:47 +0200 Subject: Update src.py --- cogs/src.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cogs/src.py b/cogs/src.py index 44a26bd..46a9173 100755 --- a/cogs/src.py +++ b/cogs/src.py @@ -116,10 +116,7 @@ async def pendingRuns(self, ctx): if key == 'level': if value["data"]: level = True - leaderboard = 'Individual Level Run' categoryName = value["data"]["name"] - mcbeil_runs += 1 - mcbe_runs -= 1 # Ugly fix pt.1 if key == 'category' and not level: categoryName = value["data"]["name"] if key == 'players': @@ -132,10 +129,14 @@ async def pendingRuns(self, ctx): except Exception as e: print(e.args) break - if game == 0 and leaderboard != 'Individual Level Run': - mcbe_runs += 1 # Ugly fix pt.2 - leaderboard = "Full Game Run" - elif game == 1 and leaderboard != 'Individual Level Run': + if game == 0: + if level == True: + mcbeil_runs += 1 + leaderboard = 'Individual Level Run' + else: + mcbe_runs += 1 + leaderboard = "Full Game Run" # If this doesn't work I'm starting a genocide + elif game == 1: leaderboard = "Category Extension Run" mcbece_runs += 1 embed = discord.Embed( -- cgit v1.2.3