Tiamat: bug fix

This commit is contained in:
skins 2021-08-07 15:30:19 +01:00
parent fdeef78467
commit 78828823df

View File

@ -35,7 +35,7 @@ class Tiamat(commands.Cog):
await ctx.send(embed=legendary_embed) await ctx.send(embed=legendary_embed)
@commands.command() @commands.command()
def spell(self, ctx, *args): async def spell(self, ctx, *args):
name = '-'.join(args).lower() name = '-'.join(args).lower()
data = requests.get(f"https://www.dnd5eapi.co/api/spells/{name}").json() data = requests.get(f"https://www.dnd5eapi.co/api/spells/{name}").json()
if "error" in data: if "error" in data: