From 2fc83462a71ab2a7c4a66f23f6cb29ba2f0fd0b0 Mon Sep 17 00:00:00 2001 From: Thomas Fournier Date: Sun, 28 May 2023 18:29:28 -0400 Subject: [PATCH] Support generic pterodactyl eggs --- package-lock.json | 4 ++-- package.json | 2 +- src/config.ts | 2 +- src/events/pterodactylStart.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index e2925db..1da3a66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "artibot", - "version": "5.1.3", + "version": "5.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "artibot", - "version": "5.1.3", + "version": "5.2.0", "license": "GPL-3.0-or-later", "dependencies": { "artibot-localizer": "^2.0.2", diff --git a/package.json b/package.json index 289a271..cefc06c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "artibot", - "version": "5.1.3", + "version": "5.2.0", "description": "Modern, fast and modular open-source Discord bot", "exports": { ".": "./dist/index.js" diff --git a/src/config.ts b/src/config.ts index 0b871df..b693c7b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -66,7 +66,7 @@ export class ArtibotConfigBuilder implements Partial { /** Set to true to show debug messages in console */ debug: boolean = false; /** Set a custom ready trigger message for Pterodactyl */ - pterodactylReadyMessage: string = "Pterodactyl Ready"; + pterodactylReadyMessage: string = "Ready"; /** Set the Discord ID of the owner of this bot (probably you) */ public setOwnerId(id: Snowflake): this { diff --git a/src/events/pterodactylStart.ts b/src/events/pterodactylStart.ts index fc152d4..557dae3 100644 --- a/src/events/pterodactylStart.ts +++ b/src/events/pterodactylStart.ts @@ -6,7 +6,7 @@ export const once = true; /** Send pterodactyl started trigger */ export function execute(client: Client, { config: { pterodactylReadyMessage } }: Artibot): void { - if ("RUNS_IN_PTERODACTYL" in process.env && process.env.RUNS_IN_PTERODACTYL) { + if ("P_SERVER_UUID" in process.env && process.env.P_SERVER_UUID) { console.log(pterodactylReadyMessage); } } \ No newline at end of file