Skip to content

Commit 07bb7ae

Browse files
committed
update eggs.
* upd. deps / package-lock
1 parent 0e1803a commit 07bb7ae

File tree

5 files changed

+1419
-561
lines changed

5 files changed

+1419
-561
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ app.json
1414
azuredeploy.json
1515
docker-compose.yml
1616
Dockerfile
17-
egg.json
17+
eggs
1818
fly.toml
1919
Procfile
2020
TODO

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The project is in a mature stage. New customization options and features are add
3535
* github action workflows to deploy to other cloud providers (aws, linode, atlantic, vultr, pikapods, okteto, ibm cloud etc.)
3636
* SQL, JSON or object store database support (postgres, redis etc.)
3737
* run as stateless serverless function (aws lambda, azure function, heroku, vercel, fly.io machines etc.)
38-
* ~~pterodactyl egg release~~
38+
* ~~pterodactyl/pelican egg release~~
3939

4040
# Getting Started
4141
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.
@@ -111,7 +111,7 @@ _The bot has no cleanup functionality, leftover messages must be removed manuall
111111

112112
# Deployment
113113
Check the wiki page for detailed instructions on [how to setup a self deploying free cloud instance at fly.io](https://github.com/a-sync/game-server-watcher/wiki/Free-hosting-via-fly.io).
114-
The latest Pterodactyl egg can always be found here: [🥚](https://raw.githubusercontent.com/a-sync/game-server-watcher/master/egg.json)
114+
The latest Pterodactyl and Pelican eggs can always be found here: [🥚](./eggs/).
115115
Pre-built container images can be downloaded from the github container registry: `docker pull ghcr.io/a-sync/game-server-watcher`
116116
<p align="center">
117117
<!--<a href="https://app.koyeb.com/deploy?type=git&repository=github.com/a-sync/game-server-watcher&branch=master&name=gsw"><img src="https://www.koyeb.com/static/images/deploy/button.svg" height="32" alt="Deploy to Koyeb"></a>//TODO: support ephemeral storage-->

egg.json renamed to eggs/pelican-egg.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
33
"meta": {
44
"version": "PTDL_v2",
55
"update_url": null
66
},
7-
"exported_at": "2024-04-02T14:15:38+02:00",
7+
"exported_at": "2024-06-01T19:44:15+00:00",
88
"name": "Game Server Watcher",
99
"author": "[email protected]",
10+
"uuid": "d163b89a-a9e6-4525-b073-a405eec86fc1",
1011
"description": "A simple discord\/telegram\/slack bot that can be hosted on a free service to monitor your game servers and players in style. \ud83d\ude0e",
1112
"features": null,
1213
"docker_images": {
@@ -36,6 +37,7 @@
3637
"user_viewable": true,
3738
"user_editable": true,
3839
"rules": "required|string|min:8|max:255",
40+
"sort": null,
3941
"field_type": "text"
4042
},
4143
{
@@ -46,6 +48,7 @@
4648
"user_viewable": true,
4749
"user_editable": true,
4850
"rules": "required|string|min:1|max:255",
51+
"sort": null,
4952
"field_type": "text"
5053
},
5154
{
@@ -56,6 +59,7 @@
5659
"user_viewable": true,
5760
"user_editable": true,
5861
"rules": "required|integer|min:1",
62+
"sort": null,
5963
"field_type": "text"
6064
},
6165
{
@@ -66,6 +70,7 @@
6670
"user_viewable": true,
6771
"user_editable": true,
6872
"rules": "nullable|string",
73+
"sort": null,
6974
"field_type": "text"
7075
},
7176
{
@@ -76,6 +81,7 @@
7681
"user_viewable": true,
7782
"user_editable": true,
7883
"rules": "nullable|string",
84+
"sort": null,
7985
"field_type": "text"
8086
},
8187
{
@@ -86,6 +92,7 @@
8692
"user_viewable": true,
8793
"user_editable": true,
8894
"rules": "nullable|string",
95+
"sort": null,
8996
"field_type": "text"
9097
},
9198
{
@@ -96,6 +103,7 @@
96103
"user_viewable": true,
97104
"user_editable": true,
98105
"rules": "required|in:0,1",
106+
"sort": null,
99107
"field_type": "text"
100108
},
101109
{
@@ -106,6 +114,7 @@
106114
"user_viewable": true,
107115
"user_editable": true,
108116
"rules": "nullable|string",
117+
"sort": null,
109118
"field_type": "text"
110119
},
111120
{
@@ -116,7 +125,8 @@
116125
"user_viewable": true,
117126
"user_editable": true,
118127
"rules": "nullable|string",
128+
"sort": null,
119129
"field_type": "text"
120130
}
121131
]
122-
}
132+
}

eggs/pterodactyl-egg.json

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
3+
"meta": {
4+
"update_url": null,
5+
"version": "PTDL_v2"
6+
},
7+
"exported_at": "2024-06-01T19:44:15+00:00",
8+
"name": "Game Server Watcher",
9+
"author": "[email protected]",
10+
"description": "A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎",
11+
"features": null,
12+
"docker_images": {
13+
"Node.js 20": "ghcr.io/parkervcp/yolks:nodejs_20"
14+
},
15+
"file_denylist": [],
16+
"startup": "env PORT={{SERVER_PORT}} /usr/local/bin/node /home/container/dist/server.js",
17+
"config": {
18+
"files": "{}",
19+
"logs": "{}",
20+
"startup": "{\r\n \"done\": \"starting loop...\"\r\n}",
21+
"stop": "^^C"
22+
},
23+
"scripts": {
24+
"installation": {
25+
"container": "node:20-bookworm-slim",
26+
"entrypoint": "bash",
27+
"script": "#!/bin/bash\r\n\r\napt-get update \u0026\u0026 apt-get install ca-certificates git -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages\r\n\r\n\r\ncd /mnt/server\r\n\r\ngit config --global --add safe.directory /mnt/server\r\ngit clone https://github.com/a-sync/game-server-watcher.git . || git pull\r\n\r\n\r\nnpm install --no-save \u0026\u0026 npm update gamedig \u0026\u0026 npm run build\r\nnpm prune --omit=dev\r\n\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
28+
}
29+
},
30+
"variables": [
31+
{
32+
"name": "SECRET",
33+
"description": "Admin secret",
34+
"env_variable": "SECRET",
35+
"default_value": "",
36+
"user_viewable": true,
37+
"user_editable": true,
38+
"rules": "required|string|min:8|max:255",
39+
"field_type": "text"
40+
},
41+
{
42+
"name": "DATA_PATH",
43+
"description": "Writable folder for data storage",
44+
"env_variable": "DATA_PATH",
45+
"default_value": "./data/",
46+
"user_viewable": true,
47+
"user_editable": true,
48+
"rules": "required|string|min:1|max:255",
49+
"field_type": "text"
50+
},
51+
{
52+
"name": "REFRESH_TIME_MINUTES",
53+
"description": "Game server info refresh interval in minutes",
54+
"env_variable": "REFRESH_TIME_MINUTES",
55+
"default_value": "2",
56+
"user_viewable": true,
57+
"user_editable": true,
58+
"rules": "required|integer|min:1",
59+
"field_type": "text"
60+
},
61+
{
62+
"name": "DISCORD_BOT_TOKEN",
63+
"description": "Discord bot token",
64+
"env_variable": "DISCORD_BOT_TOKEN",
65+
"default_value": "",
66+
"user_viewable": true,
67+
"user_editable": true,
68+
"rules": "nullable|string",
69+
"field_type": "text"
70+
},
71+
{
72+
"name": "TELEGRAM_BOT_TOKEN",
73+
"description": "Telegram bot token",
74+
"env_variable": "TELEGRAM_BOT_TOKEN",
75+
"default_value": "",
76+
"user_viewable": true,
77+
"user_editable": true,
78+
"rules": "nullable|string",
79+
"field_type": "text"
80+
},
81+
{
82+
"name": "STEAM_WEB_API_KEY",
83+
"description": "Steam web API key",
84+
"env_variable": "STEAM_WEB_API_KEY",
85+
"default_value": "",
86+
"user_viewable": true,
87+
"user_editable": true,
88+
"rules": "nullable|string",
89+
"field_type": "text"
90+
},
91+
{
92+
"name": "Debug Mode",
93+
"description": "Enable or disable debug mode.",
94+
"env_variable": "DBG",
95+
"default_value": "0",
96+
"user_viewable": true,
97+
"user_editable": true,
98+
"rules": "required|in:0,1",
99+
"field_type": "text"
100+
},
101+
{
102+
"name": "SLACK_BOT_TOKEN",
103+
"description": "Slack bot token",
104+
"env_variable": "SLACK_BOT_TOKEN",
105+
"default_value": "",
106+
"user_viewable": true,
107+
"user_editable": true,
108+
"rules": "nullable|string",
109+
"field_type": "text"
110+
},
111+
{
112+
"name": "SLACK_APP_TOKEN",
113+
"description": "Slack app token",
114+
"env_variable": "SLACK_APP_TOKEN",
115+
"default_value": "",
116+
"user_viewable": true,
117+
"user_editable": true,
118+
"rules": "nullable|string",
119+
"field_type": "text"
120+
}
121+
]
122+
}

0 commit comments

Comments
 (0)