Skip to content

Commit ca4db71

Browse files
committed
Add Pterodactyl/Pelican egg
1 parent 57c0120 commit ca4db71

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

egg-stream-bot.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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-06-26T16:47:02+03:00",
8+
"name": "StreamBot",
9+
"author": "ysdragon@protonmail.com",
10+
"description": "A self bot to stream videos to Discord.",
11+
"features": null,
12+
"docker_images": {
13+
"Bun Canary": "ghcr.io\/parkervcp\/yolks:bun_canary",
14+
"Bun Latest": "ghcr.io\/parkervcp\/yolks:bun_latest"
15+
},
16+
"file_denylist": [],
17+
"startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [ -f \/home\/container\/package.json ]; then bun install; fi; bun run start",
18+
"config": {
19+
"files": "{}",
20+
"startup": "{\r\n \"done\": [\r\n \"change this text 1\",\r\n \"change this text 2\"\r\n ]\r\n}",
21+
"logs": "{}",
22+
"stop": "^^C"
23+
},
24+
"scripts": {
25+
"installation": {
26+
"script": "#!\/bin\/bash\r\n# Bun App Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -qq -y git curl jq file unzip make gcc g++ python python-dev libtool ffmpeg\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nGIT_ADDRESS=\"https:\/\/github.com\/ysdragon\/StreamBot.git\"\r\n\r\n## pull git js bot repo\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 \".git directory exists\"\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 from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"\/mnt\/server is empty.\\ncloning files into repo\"\r\n if [ -z ${BOT_VERSION} ]; then\r\n echo -e \"cloning default branch\"\r\n git clone ${GIT_ADDRESS} .\r\n else\r\n echo -e \"cloning ${BOT_VERSION}'\"\r\n git clone --single-branch --branch v${BOT_VERSION} ${GIT_ADDRESS} .\r\n fi\r\nfi\r\n\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n bun install\r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
27+
"container": "ghcr.io\/parkervcp\/installers:debian",
28+
"entrypoint": "bash"
29+
}
30+
},
31+
"variables": [
32+
{
33+
"name": "Auto Update",
34+
"description": "Pull the latest files on startup.\r\n0 = false (default)\r\n1 = true",
35+
"env_variable": "AUTO_UPDATE",
36+
"default_value": "0",
37+
"user_viewable": true,
38+
"user_editable": true,
39+
"rules": "required|boolean",
40+
"field_type": "text"
41+
},
42+
{
43+
"name": "Bot Version",
44+
"description": "The bot version to install.",
45+
"env_variable": "BOT_VERSION",
46+
"default_value": "",
47+
"user_viewable": true,
48+
"user_editable": true,
49+
"rules": "nullable|string",
50+
"field_type": "text"
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)