This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds bots/discord/game-server-watcher
- Loading branch information
Showing
4 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Game Server Watcher | ||
|
||
## From [Github](https://github.com/a-sync/game-server-watcher#readme) | ||
A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎 | ||
|
||
## Screenshots | ||
<img src="https://user-images.githubusercontent.com/14183614/162092529-e1645b44-2650-4893-8123-7ba187b1f51c.png" height="280"> <img src="https://user-images.githubusercontent.com/14183614/162092488-f28bd60c-88bf-4b1e-a31e-d7dca51d8c28.png" height="280"> <img src="https://github.com/a-sync/game-server-watcher/assets/14183614/0461ad76-bb13-468c-a7b3-437d6a3cea63" height="280"> <img src="https://github.com/a-sync/game-server-watcher/assets/14183614/ee0ef0de-83bc-42ae-8f64-62f481f6ba8f" height="280"> | ||
|
||
## Running the bot | ||
Refer to the wiki on how to acquire tokens for: | ||
* [steam](https://github.com/a-sync/game-server-watcher/wiki/Steam-Web-API-key) | ||
* [discord](https://github.com/a-sync/game-server-watcher/wiki/Discord-bot-token) | ||
* [telegram](https://github.com/a-sync/game-server-watcher/wiki/Telegram-bot-token) | ||
* [slack](https://github.com/a-sync/game-server-watcher/wiki/Slack-bot-token) | ||
|
||
## Server Ports | ||
GSW Control Panel requires one port for http traffic. | ||
(It can be any port.) |
114 changes: 114 additions & 0 deletions
114
bots/discord/game-server-watcher/egg-game-server-watcher.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | ||
"meta": { | ||
"version": "PTDL_v2", | ||
"update_url": null | ||
}, | ||
"exported_at": "2023-08-15T04:20:09+02:00", | ||
"name": "Game Server Watcher", | ||
"author": "[email protected]", | ||
"description": "A simple discord\/telegram\/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎", | ||
"features": null, | ||
"docker_images": { | ||
"Node.js 20": "ghcr.io\/parkervcp\/yolks:nodejs_20" | ||
}, | ||
"file_denylist": [], | ||
"startup": "env PORT={{SERVER_PORT}} \/usr\/local\/bin\/node \/home\/container\/dist\/server.js", | ||
"config": { | ||
"files": "{}", | ||
"startup": "{\r\n \"done\": \"starting loop...\"\r\n}", | ||
"logs": "{}", | ||
"stop": "^^C" | ||
}, | ||
"scripts": { | ||
"installation": { | ||
"script": "#!\/bin\/bash\r\napt-get update && apt-get install ca-certificates git -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages\r\ncd \/mnt\/server\r\ngit config --global --add safe.directory \/mnt\/server\r\ngit clone https:\/\/github.com\/a-sync\/game-server-watcher.git . || git pull\r\nnpm install && npm run build\r\nnpm prune --omit=dev", | ||
"container": "node:20-bookworm-slim", | ||
"entrypoint": "bash" | ||
} | ||
}, | ||
"variables": [ | ||
{ | ||
"name": "SECRET", | ||
"description": "Admin secret", | ||
"env_variable": "SECRET", | ||
"default_value": "secret", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "required|string|min:1|max:255" | ||
}, | ||
{ | ||
"name": "DATA_PATH", | ||
"description": "Writable folder for data storage", | ||
"env_variable": "DATA_PATH", | ||
"default_value": ".\/data\/", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "required|string|min:1|max:255" | ||
}, | ||
{ | ||
"name": "REFRESH_TIME_MINUTES", | ||
"description": "Game server info refresh interval in minutes", | ||
"env_variable": "REFRESH_TIME_MINUTES", | ||
"default_value": "2", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"field_type": "integer", | ||
"rules": "required|integer|min:1" | ||
}, | ||
{ | ||
"name": "DISCORD_BOT_TOKEN", | ||
"description": "Discord bot token", | ||
"env_variable": "DISCORD_BOT_TOKEN", | ||
"default_value": "", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "nullable|string" | ||
}, | ||
{ | ||
"name": "TELEGRAM_BOT_TOKEN", | ||
"description": "Telegram bot token", | ||
"env_variable": "TELEGRAM_BOT_TOKEN", | ||
"default_value": "", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "nullable|string" | ||
}, | ||
{ | ||
"name": "SLACK_BOT_TOKEN", | ||
"description": "Slack bot token", | ||
"env_variable": "SLACK_BOT_TOKEN", | ||
"default_value": "", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "nullable|string" | ||
}, | ||
{ | ||
"name": "SLACK_APP_TOKEN", | ||
"description": "Slack app token", | ||
"env_variable": "SLACK_APP_TOKEN", | ||
"default_value": "", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "nullable|string" | ||
}, | ||
{ | ||
"name": "STEAM_WEB_API_KEY", | ||
"description": "Steam web API key", | ||
"env_variable": "STEAM_WEB_API_KEY", | ||
"default_value": "", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "nullable|string" | ||
}, | ||
{ | ||
"name": "Debug Mode", | ||
"description": "Enable or disable debug mode.", | ||
"env_variable": "DBG", | ||
"default_value": "0", | ||
"user_viewable": true, | ||
"user_editable": true, | ||
"rules": "required|in:0,1" | ||
} | ||
] | ||
} |