aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2020-07-29 09:51:03 +0000
committerMango0x45 <thomasvoss@live.com>2020-07-29 09:51:03 +0000
commitad0869da6fc35b232197c38bfe37769b238f1566 (patch)
treec9d82440098c1a211a7bb2a4dc204f2c9a374941 /cogs
parentb237569b2701d51df1cfa42d2fb970afec7aa397 (diff)
downloadsteve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.tar
steve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.tar.gz
steve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.tar.bz2
steve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.tar.lz
steve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.tar.xz
steve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.tar.zst
steve-bot-ad0869da6fc35b232197c38bfe37769b238f1566.zip
Changed reject message
Diffstat (limited to 'cogs')
-rwxr-xr-xcogs/src.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/cogs/src.py b/cogs/src.py
index 3361c8c..e529c28 100755
--- a/cogs/src.py
+++ b/cogs/src.py
@@ -22,7 +22,7 @@ async def rejectRun(self, apiKey, ctx, run, reason):
},
data=json.dumps(reject))
if r.status_code == 200 or r.status_code == 204:
- await ctx.send(f'Run rejected succesfully for {reason}')
+ await ctx.send(f'Run rejected succesfully for `{reason}`')
else:
await ctx.send("Something went wrong")
await ctx.message.author.send(
@@ -102,14 +102,17 @@ async def pendingRuns(self, ctx):
if key == 'category' and not level:
categoryName = value["data"]["name"]
if key == 'videos':
- if value['links'][0]['uri'] in self.bot.runs_blacklist["videos"]:
+ if value['links'][0]['uri'] in self.bot.runs_blacklist[
+ "videos"]:
await rejectRun(
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')
elif value["data"][0]['rel'] == 'guest':
player = value["data"][0]['name']
else: