From ebc4ac0b5f5b577196999e9ecddc1d6ad15101ec Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 24 Aug 2023 13:34:35 +1000 Subject: [PATCH] bot: New licence added post request --- 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 6214cd2..4d644f7 100644 --- a/discord-bot/bot.py +++ b/discord-bot/bot.py @@ -54,7 +54,7 @@ async def license(ctx): await ctx.response.send_message("You do not have permission to use this command",ephemeral=True) 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: await ctx.response.send_message(r.text,ephemeral=True) else: