aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com>2020-05-25 09:23:30 +0000
committerGitHub <noreply@github.com>2020-05-25 09:23:30 +0000
commitbfac390864da3ad90c54f0bf164e95c1ccd3e481 (patch)
tree05bb1f09d0d7017805d6f5e348cd2e5beaae6f70
parent8b7c6a0132d0833924866700e5e3b1b9c96224fc (diff)
downloadsteve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.tar
steve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.tar.gz
steve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.tar.bz2
steve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.tar.lz
steve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.tar.xz
steve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.tar.zst
steve-bot-bfac390864da3ad90c54f0bf164e95c1ccd3e481.zip
Fixed typos and embed title bug
-rwxr-xr-xcogs/src.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cogs/src.py b/cogs/src.py
index 4971115..0d7a6d1 100755
--- a/cogs/src.py
+++ b/cogs/src.py
@@ -107,6 +107,7 @@ async def pendingRuns(self, ctx):
for game in range(2):
for i in range(200):
+ leaderboard = '' # A little ugly but prevents name not defined error
level = False
try:
for key, value in runs['data'][i].items():
@@ -132,9 +133,9 @@ async def pendingRuns(self, ctx):
except Exception as e:
print(e.args)
break
- if game == 0:
+ if game == 0 and leaderboard != 'Individual Level Run':
leaderboard = "Full Game Run"
- elif game == 1:
+ elif game == 1 and leaderboard != 'Individual Level Run':
leaderboard = "Category Extension Run"
mcbece_runs += 1
embed = discord.Embed(
@@ -142,7 +143,7 @@ async def pendingRuns(self, ctx):
await self.bot.get_channel(699713639866957905).send(embed=embed)
runs = runs2
gameID = gameID2
- embed_stats = discord.Embed(title='Pendng Run Stats', description=f"Full Game Runs: {mcbe_runs}\nIndividual Level Runs: {mcbeil_runs}\nCategory Extension Runs: {mcbece_runs}", color=16711680 + i * 60)
+ embed_stats = discord.Embed(title='Pending Run Stats', description=f"Full Game Runs: {mcbe_runs}\nIndividual Level Runs: {mcbeil_runs}\nCategory Extension Runs: {mcbece_runs}", color=16711680 + i * 60)
await self.bot.get_channel(699713639866957905).send(embed=embed_stats)
class Src(commands.Cog):