Merge pull request 'Add Pelican Panel API key support' (#1) from development into main
CI/CD Pipeline / Unit Tests (Python 3.11) (push) Successful in 53s
CI/CD Pipeline / Unit Tests (Python 3.12) (push) Successful in 55s
CI/CD Pipeline / Unit Tests (Python 3.13) (push) Successful in 56s
CI/CD Pipeline / Code Quality & Linting (push) Successful in 32s
CI/CD Pipeline / Integration Tests (push) Successful in 31s
CI/CD Pipeline / Security Scanning (push) Successful in 2m17s
CI/CD Pipeline / Generate Test Report (push) Successful in 3s
CI/CD Pipeline / Build Docker Image (push) Successful in 1m2s
CI/CD Pipeline / CI/CD Pipeline Status (push) Successful in 2s

Reviewed-on: k.eaven/pterodisbot#1
This commit was merged in pull request #1.
This commit is contained in:
k.eaven committed 2026-10-24 08:01:48 +00:00
commit ac59b97500
2 files changed
+8 -8

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
# Pterodactyl Discord Bot # Pterodisbot the Pterodactyl Discord Bot
![Pterodactyl X Discord](md_images/Pterodisbot_README_Header.png) ![Pterodactyl X Discord](md_images/Pterodisbot_README_Header.png)
@@ -174,7 +174,7 @@ Before installing the bot software, you need to create a Discord application and
1. Clone the repository: 1. Clone the repository:
```bash ```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 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: 1. Clone the repository:
```bash ```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 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: 1. Clone the repository:
```bash ```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 cd pterodactyl-discord-bot
``` ```
+4 -4
View File
@@ -119,12 +119,12 @@ def validate_config():
# Validate API keys have correct prefixes # Validate API keys have correct prefixes
client_key = config.get("Pterodactyl", "ClientAPIKey", fallback="") client_key = config.get("Pterodactyl", "ClientAPIKey", fallback="")
if client_key and not client_key.startswith("ptlc_"): if client_key and not (client_key.startswith("ptlc_") or client_key.startswith("pacc_")):
errors.append("ClientAPIKey should start with 'ptlc_'") errors.append("ClientAPIKey should start with 'ptlc_' or 'pacc_'")
app_key = config.get("Pterodactyl", "ApplicationAPIKey", fallback="") app_key = config.get("Pterodactyl", "ApplicationAPIKey", fallback="")
if app_key and not app_key.startswith("ptla_"): if app_key and not (app_key.startswith("ptla_") or app_key.startswith("papp_")):
errors.append("ApplicationAPIKey should start with 'ptla_'") errors.append("ApplicationAPIKey should start with 'ptla_' or 'papp_'")
# Validate PanelURL is a valid URL # Validate PanelURL is a valid URL
panel_url = config.get("Pterodactyl", "PanelURL", fallback="") panel_url = config.get("Pterodactyl", "PanelURL", fallback="")