aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcogs/src.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cogs/src.py b/cogs/src.py
index 58e72af..3361c8c 100755
--- a/cogs/src.py
+++ b/cogs/src.py
@@ -107,8 +107,9 @@ async def pendingRuns(self, ctx):
self, self.bot.config['api_key'], ctx, run_id,
'Detected as spam by our automatic filter')
if key == 'players':
- if value["data"[0]["names"]["international"] in self.bot.runs_blacklist["players"]:
- await rejectRun(self, self.bot.config['api_key'], ctx, run_id, 'Banned player. https://www.speedrun.com/mcbe/thread/5cuo8/1#d2m6x')
+ if value["data"][0]["names"]["international"] in self.bot.runs_blacklist["players"]:
+ await rejectRun(self, self.bot.config['api_key'], ctx, run_id,
+ 'Banned player. https://www.speedrun.com/mcbe/thread/5cuo8/1#d2m6x')
elif value["data"][0]['rel'] == 'guest':
player = value["data"][0]['name']
else: