Did manga stuff too
This commit is contained in:
parent
bf8f29aa72
commit
19acae2abc
|
@ -163,8 +163,12 @@ Powered by kitsu.io"""
|
||||||
|
|
||||||
resp = await resp.json()
|
resp = await resp.json()
|
||||||
resp = resp['data']
|
resp = resp['data']
|
||||||
|
|
||||||
|
query = discord.utils.escape_mentions(query)
|
||||||
|
query = discord.utils.escape_markdown(query)
|
||||||
|
|
||||||
if not resp:
|
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]
|
manga = resp[0]
|
||||||
title = f'{manga["attributes"]["canonicalTitle"]}'
|
title = f'{manga["attributes"]["canonicalTitle"]}'
|
||||||
|
|
Loading…
Reference in New Issue