mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Did manga stuff too
This commit is contained in:
parent
bf8f29aa72
commit
19acae2abc
1 changed files with 5 additions and 1 deletions
|
@ -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"]}'
|
||||
|
|
Loading…
Reference in a new issue