Fixed manga too

This commit is contained in:
Adriene Hutchins 2020-03-23 20:23:10 -04:00
parent ddb5c1b193
commit bf8f29aa72
1 changed files with 39 additions and 42 deletions

View File

@ -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))