diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2020-05-26 07:28:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 07:28:28 +0000 |
commit | 180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6 (patch) | |
tree | b960b78a5c7cb88a7c5d3d5e85e978b120d47ff0 | |
parent | 0802a0610f04c7dfbd3d63636c9605fbd4729ed8 (diff) | |
parent | ecfab29d89f1d9b5ba5278202b4cfa91d4d8abc2 (diff) | |
download | steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.tar steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.tar.gz steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.tar.bz2 steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.tar.lz steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.tar.xz steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.tar.zst steve-bot-180b7cf0b05f8bf2dbdd5668db832bf108b8c9c6.zip |
Merge pull request #5 from Mango0x45/patch-5
Update 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( |