Sarenrae: await api_ping

This commit is contained in:
skins 2021-09-01 22:02:00 +01:00
parent bb8cc3eb68
commit 52d8818ba1

View File

@ -35,25 +35,25 @@ class Sarenrae(commands.Cog):
@commands.command()
async def ancestry(self, ctx, *args):
name = ' '.join(args)
html = self.api_ping("ancestry", name)
html = await self.api_ping("ancestry", name)
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
@commands.command()
async def action(self, ctx, *args):
name = ' '.join(args)
html = self.api_ping("action", name)
html = await self.api_ping("action", name)
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
@commands.command()
async def spell(self, ctx, *args):
async def sar_spell(self, ctx, *args):
name = ' '.join(args)
html = self.api_ping("spell", name)
html = await self.api_ping("spell", name)
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
@commands.command()
async def item(self, ctx, *args):
name = ' '.join(args)
html = self.api_ping("equipment", name)
html = await self.api_ping("equipment", name)
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
@commands.command()