bot: New licence added post request
All checks were successful
Build Docker / Build Master (push) Successful in 20s
Build Docker / Build Bot (push) Successful in 23s

This commit is contained in:
Nathan Woodburn 2023-08-24 13:34:35 +10:00
parent 7fab14a81f
commit ebc4ac0b5f
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -54,7 +54,7 @@ async def license(ctx):
await ctx.response.send_message("You do not have permission to use this command",ephemeral=True) await ctx.response.send_message("You do not have permission to use this command",ephemeral=True)
return return
r = requests.get(f"http://{Master_IP}:{Master_Port}/add-licence",headers={"key":os.getenv('LICENCE_KEY')}) r = requests.post(f"http://{Master_IP}:{Master_Port}/add-licence",headers={"key":os.getenv('LICENCE_KEY')})
if r.status_code == 200: if r.status_code == 200:
await ctx.response.send_message(r.text,ephemeral=True) await ctx.response.send_message(r.text,ephemeral=True)
else: else: