aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2020-05-25 10:26:05 +0000
committerGitHub <noreply@github.com>2020-05-25 10:26:05 +0000
commitf16deca55199f2878ce2f56b5c4095bf633b5741 (patch)
tree05bb1f09d0d7017805d6f5e348cd2e5beaae6f70 /cogs
parent8b7c6a0132d0833924866700e5e3b1b9c96224fc (diff)
parentbfac390864da3ad90c54f0bf164e95c1ccd3e481 (diff)
downloadsteve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.tar
steve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.tar.gz
steve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.tar.bz2
steve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.tar.lz
steve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.tar.xz
steve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.tar.zst
steve-bot-f16deca55199f2878ce2f56b5c4095bf633b5741.zip
Merge pull request #3 from Mango0x45/patch-3
Fixed typos and embed title bug
Diffstat (limited to '')
-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):