From fc65022c3dc9b75bb8be865db3304475fe46dfb6 Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Wed, 29 Jul 2020 11:10:09 +0200 Subject: Update src.py --- cogs/src.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cogs/src.py') 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: -- cgit v1.2.3