bug fix
This commit is contained in:
parent
d5a1785f66
commit
7fb6445a8d
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user