Tiamat: made monster method into a command
This commit is contained in:
parent
0dd78050a0
commit
a73bc059ea
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user