Tiamat: made monster method into a command

This commit is contained in:
skins 2021-08-05 23:53:21 +01:00
parent 0dd78050a0
commit a73bc059ea

View File

@ -8,6 +8,7 @@ class Tiamat(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@commands.command()
async 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()