bot: Fix to enable free licences of FREE MODE
All checks were successful
Build Docker / Build Master (push) Successful in 21s
Build Docker / Build Bot (push) Successful in 25s

This commit is contained in:
Nathan Woodburn 2023-08-25 14:09:26 +10:00
parent 5049796d07
commit 2902624637
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -65,7 +65,7 @@ async def license(ctx):
@tree.command(name="createsite", description="Create a new WordPress site")
async def createsite(ctx, domain: str, licence: str):
if FREE_LICENCE == False: # If free licences are enabled then auto generate a licence
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:
json = r.json()