From a73bc059ea3b35557ef2cf6041b04fbbfa8f8f14 Mon Sep 17 00:00:00 2001 From: skins Date: Thu, 5 Aug 2021 23:53:21 +0100 Subject: [PATCH] Tiamat: made monster method into a command --- tiamat/tiamat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tiamat/tiamat.py b/tiamat/tiamat.py index b20f534..2f2b443 100644 --- a/tiamat/tiamat.py +++ b/tiamat/tiamat.py @@ -8,6 +8,7 @@ class Tiamat(commands.Cog): def __init__(self, bot): self.bot = bot + @commands.command() async def monster(self, ctx, *args): name = '-'.join(args).lower() data = requests.get(f"https://www.dnd5eapi.co/api/monsters/{name}").json()