Skip to content

Commit 3cedcc6

Browse files
committed
Added pterodactyl egg
1 parent 6fdf0ec commit 3cedcc6

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

pterodactyl-egg.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v2",
5+
"update_url": null
6+
},
7+
"exported_at": "2025-03-01T18:53:24+01:00",
8+
"name": "BryanBot",
9+
"author": "[email protected]",
10+
"description": null,
11+
"features": null,
12+
"docker_images": {
13+
"Node.js LTS": "ghcr.io\/parkervcp\/yolks:nodejs_22",
14+
"Node.js Latest": "ghcr.io\/parkervcp\/yolks:nodejs_23"
15+
},
16+
"file_denylist": [],
17+
"startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm install ${NODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then \/usr\/local\/bin\/npm install; fi; \/usr\/local\/bin\/node \/home\/container\/{{BOT_JS_FILE}} {{STARTUP_FLAGS}}",
18+
"config": {
19+
"files": "{}",
20+
"startup": "{\r\n \"done\": \"is ready to use!\"\r\n}",
21+
"logs": "{}",
22+
"stop": "^C^C"
23+
},
24+
"scripts": {
25+
"installation": {
26+
"script": "#!\/bin\/bash\r\n# BryanBot Installation Script\r\n# Server Files: \/mnt\/server\r\n\r\n# Set BryanBot github repo url\r\nGIT_ADDRESS=\"https:\/\/github.com\/BryanBotDev\/BryanBot.git\"\r\n\r\n# Install dependencies\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ python3 python-dev libtool\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nif [ -z \"${USERNAME}\" ] && [ -z \"${ACCESS_TOKEN}\" ]; then\r\n echo -e \"Using anonymous git account\"\r\nelse\r\n GIT_ADDRESS=\"https:\/\/${USERNAME}:${ACCESS_TOKEN}@$(echo -e ${GIT_ADDRESS} | cut -d\/ -f3-)\"\r\nfi\r\n\r\n## Pull BryanBot files\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"\/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"Found .git directory\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"Loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"Files found with no git config\"\r\n echo -e \"Closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"${GIT_ADDRESS}\" ]; then\r\n echo \"Pulling latest release from GitHub\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"Cloning stable branch\"\r\n git clone -b stable ${GIT_ADDRESS} .\r\nfi\r\n\r\necho \"Installing Node.js packages\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install\r\nfi\r\n\r\necho -e \"Install complete\"\r\nexit 0",
27+
"container": "node:18-buster-slim",
28+
"entrypoint": "bash"
29+
}
30+
},
31+
"variables": [
32+
{
33+
"name": "Auto Update BrayanBot",
34+
"description": "Pull the latest files from BrayanBot's Github",
35+
"env_variable": "AUTO_UPDATE",
36+
"default_value": "1",
37+
"user_viewable": true,
38+
"user_editable": true,
39+
"rules": "required|boolean",
40+
"field_type": "text"
41+
},
42+
{
43+
"name": "Additional Node packages",
44+
"description": "Install additional node packages. Use spaces to separate.",
45+
"env_variable": "NODE_PACKAGES",
46+
"default_value": "",
47+
"user_viewable": true,
48+
"user_editable": true,
49+
"rules": "nullable|string",
50+
"field_type": "text"
51+
},
52+
{
53+
"name": "GitHub Username",
54+
"description": "Username to auth with GitHub.",
55+
"env_variable": "USERNAME",
56+
"default_value": "",
57+
"user_viewable": true,
58+
"user_editable": true,
59+
"rules": "nullable|string",
60+
"field_type": "text"
61+
},
62+
{
63+
"name": "GitHub Access Token",
64+
"description": "Password to use with GitHub.\r\n\r\nIt's best practice to use a Personal Access Token.\r\nhttps:\/\/github.com\/settings\/tokens",
65+
"env_variable": "ACCESS_TOKEN",
66+
"default_value": "",
67+
"user_viewable": true,
68+
"user_editable": true,
69+
"rules": "nullable|string",
70+
"field_type": "text"
71+
},
72+
{
73+
"name": "Main bot file",
74+
"description": "The file that starts the bot.",
75+
"env_variable": "BOT_JS_FILE",
76+
"default_value": "src\/index.js",
77+
"user_viewable": true,
78+
"user_editable": false,
79+
"rules": "required|string",
80+
"field_type": "text"
81+
},
82+
{
83+
"name": "Startup Parameters",
84+
"description": "",
85+
"env_variable": "STARTUP_FLAGS",
86+
"default_value": "--show-errors --reset-slashCommands",
87+
"user_viewable": true,
88+
"user_editable": true,
89+
"rules": "nullable|string",
90+
"field_type": "text"
91+
}
92+
]
93+
}

0 commit comments

Comments
 (0)