diff options
author | Thomas Voss <57815710+Mango0x45@users.noreply.github.com> | 2020-05-26 07:26:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 07:26:47 +0000 |
commit | ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2 (patch) | |
tree | b960b78a5c7cb88a7c5d3d5e85e978b120d47ff0 /cogs/src.py | |
parent | 0802a0610f04c7dfbd3d63636c9605fbd4729ed8 (diff) | |
download | steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.tar steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.tar.gz steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.tar.bz2 steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.tar.lz steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.tar.xz steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.tar.zst steve-bot-ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2.zip |
Update src.py
Diffstat (limited to 'cogs/src.py')
-rwxr-xr-x | cogs/src.py | 15 |
1 files 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( |