Skip to content

Commit

Permalink
Support generic pterodactyl eggs
Browse files Browse the repository at this point in the history
  • Loading branch information
GoudronViande24 committed May 28, 2023
1 parent 141c79f commit 2fc8346
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class ArtibotConfigBuilder implements Partial<ArtibotConfig> {
/** 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 {
Expand Down
2 changes: 1 addition & 1 deletion src/events/pterodactylStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 2fc8346

Please sign in to comment.