From fb9295c260ca65de8cab2de670d3c6264b08b135 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 14:17:12 +1000 Subject: [PATCH] bot: Made licence an optional arg --- discord-bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord-bot/bot.py b/discord-bot/bot.py index 0f4cf8a..978545f 100644 --- a/discord-bot/bot.py +++ b/discord-bot/bot.py @@ -64,7 +64,7 @@ async def license(ctx): await ctx.response.send_message(f"Error getting license\n" + r.text,ephemeral=True) @tree.command(name="createsite", description="Create a new WordPress site") -async def createsite(ctx, domain: str, licence: str): +async def createsite(ctx, domain: str, licence: str = None): if FREE_LICENCE == True: # If free licences are enabled then auto generate a licence r = requests.post(f"http://{Master_IP}:{Master_Port}/add-licence",headers={"key":os.getenv('LICENCE_KEY')}) if r.status_code == 200: