Fixed manga too
This commit is contained in:
parent
ddb5c1b193
commit
bf8f29aa72
|
@ -159,8 +159,7 @@ Powered by kitsu.io"""
|
|||
|
||||
# Handling
|
||||
async with ctx.typing():
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(base + "manga", params={"filter[text]": query}) as resp:
|
||||
async with self.request.get(base + "manga", params={"filter[text]": query}) as resp:
|
||||
|
||||
resp = await resp.json()
|
||||
resp = resp['data']
|
||||
|
@ -201,7 +200,7 @@ Powered by kitsu.io"""
|
|||
|
||||
await ctx.send(f"**{title}** - <{url}>", embed=embed)
|
||||
|
||||
except Exception as e:
|
||||
except Exception :
|
||||
|
||||
aired = f"{manga['attributes']['startDate']}{thing}"
|
||||
template = f"""
|
||||
|
@ -218,8 +217,6 @@ Type: {manga['attributes']["showType"]}
|
|||
Powered by kitsu.io"""
|
||||
await ctx.send(template)
|
||||
|
||||
await session.close()
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(SpecialtySearch(bot))
|
||||
|
|
Loading…
Reference in New Issue