This commit is contained in:
skins 2021-08-05 23:42:06 +01:00
parent d5a1785f66
commit 7fb6445a8d

View File

@ -8,7 +8,7 @@ class Tiamat(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
def monster(self, ctx, *args): async def monster(self, ctx, *args):
name = '-'.join(args).lower() name = '-'.join(args).lower()
data = requests.get(f"https://www.dnd5eapi.co/api/monsters/{name}").json() data = requests.get(f"https://www.dnd5eapi.co/api/monsters/{name}").json()
if "error" in data: if "error" in data: