From 448d1d14481ba42b5fbd8211ab231627c485e92a Mon Sep 17 00:00:00 2001 From: Eaven Kimura Date: Sat, 24 Oct 2026 06:51:57 +0000 Subject: [PATCH] Add Pelican Panel API key support: accept pacc_ (client) and papp_ (application) prefixes alongside Pterodactyl's ptlc_ and ptla_ --- README.md | 6 +++--- pterodisbot.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6988e6e..34b1ed7 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ Before installing the bot software, you need to create a Discord application and 1. Clone the repository: ```bash - git clone https://git.serendipity.systems/k.eaven/pterodactyl-discord-bot.git + git clone https://git.serendipity.systems/k.eaven/pterodisbot.git cd pterodactyl-discord-bot ``` @@ -194,7 +194,7 @@ Before installing the bot software, you need to create a Discord application and 1. Clone the repository: ```bash - git clone https://git.serendipity.systems/k.eaven/pterodactyl-discord-bot.git + git clone https://git.serendipity.systems/k.eaven/pterodisbot.git cd pterodactyl-discord-bot ``` @@ -249,7 +249,7 @@ Before installing the bot software, you need to create a Discord application and 1. Clone the repository: ```bash - git clone https://git.serendipity.systems/k.eaven/pterodactyl-discord-bot.git + git clone https://git.serendipity.systems/k.eaven/pterodisbot.git cd pterodactyl-discord-bot ``` diff --git a/pterodisbot.py b/pterodisbot.py index fe00b25..b16bb30 100644 --- a/pterodisbot.py +++ b/pterodisbot.py @@ -119,12 +119,12 @@ def validate_config(): # Validate API keys have correct prefixes client_key = config.get("Pterodactyl", "ClientAPIKey", fallback="") - if client_key and not client_key.startswith("ptlc_"): - errors.append("ClientAPIKey should start with 'ptlc_'") + if client_key and not (client_key.startswith("ptlc_") or client_key.startswith("pacc_")): + errors.append("ClientAPIKey should start with 'ptlc_' or 'pacc_'") app_key = config.get("Pterodactyl", "ApplicationAPIKey", fallback="") - if app_key and not app_key.startswith("ptla_"): - errors.append("ApplicationAPIKey should start with 'ptla_'") + if app_key and not (app_key.startswith("ptla_") or app_key.startswith("papp_")): + errors.append("ApplicationAPIKey should start with 'ptla_' or 'papp_'") # Validate PanelURL is a valid URL panel_url = config.get("Pterodactyl", "PanelURL", fallback="")