Did manga stuff too

This commit is contained in:
Adriene Hutchins 2020-03-23 20:23:54 -04:00
parent bf8f29aa72
commit 19acae2abc
1 changed files with 5 additions and 1 deletions

View File

@ -163,8 +163,12 @@ Powered by kitsu.io"""
resp = await resp.json()
resp = resp['data']
query = discord.utils.escape_mentions(query)
query = discord.utils.escape_markdown(query)
if not resp:
return await ctx.send("The requested manga coudn't be found")
return await ctx.send(f"No results for `{query}`.")
manga = resp[0]
title = f'{manga["attributes"]["canonicalTitle"]}'