Sarenrae: await api_ping
This commit is contained in:
parent
bb8cc3eb68
commit
52d8818ba1
@ -35,25 +35,25 @@ class Sarenrae(commands.Cog):
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
async def ancestry(self, ctx, *args):
|
async def ancestry(self, ctx, *args):
|
||||||
name = ' '.join(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"))
|
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def action(self, ctx, *args):
|
async def action(self, ctx, *args):
|
||||||
name = ' '.join(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"))
|
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def spell(self, ctx, *args):
|
async def sar_spell(self, ctx, *args):
|
||||||
name = ' '.join(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"))
|
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def item(self, ctx, *args):
|
async def item(self, ctx, *args):
|
||||||
name = ' '.join(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"))
|
await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg"))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user