Egg Repository

Pterodactyl Community Egg Repository

Game Server Watcher

A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎

Read Me

Game Server Watcher

From Github

A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎

Screenshots

Running the bot

Refer to the wiki on how to acquire tokens for:

Server Ports

GSW Control Panel requires one port for http traffic.
(It can be any port.)

Portdefault
Web8081
Yolks
NameTag
Node.js 20ghcr.io/ptero-eggs/yolks:nodejs_20
Variables and Startup

Startup Command

env PORT={{SERVER_PORT}} /usr/local/bin/node /home/container/dist/server.js

Variables

SECRET

Admin secret

Environment Variable: SECRET
Default Value:
User Viewable:✅
User Editable:✅
DATA_PATH

Writable folder for data storage

Environment Variable: DATA_PATH
Default Value: ./data/
User Viewable:✅
User Editable:✅
REFRESH_TIME_MINUTES

Game server info refresh interval in minutes

Environment Variable: REFRESH_TIME_MINUTES
Default Value: 2
User Viewable:✅
User Editable:✅
DISCORD_BOT_TOKEN

Discord bot token

Environment Variable: DISCORD_BOT_TOKEN
Default Value:
User Viewable:✅
User Editable:✅
TELEGRAM_BOT_TOKEN

Telegram bot token

Environment Variable: TELEGRAM_BOT_TOKEN
Default Value:
User Viewable:✅
User Editable:✅
STEAM_WEB_API_KEY

Steam web API key

Environment Variable: STEAM_WEB_API_KEY
Default Value:
User Viewable:✅
User Editable:✅
Debug Mode

Enable or disable debug mode.

Environment Variable: DBG
Default Value: 0
User Viewable:✅
User Editable:✅
SLACK_BOT_TOKEN

Slack bot token

Environment Variable: SLACK_BOT_TOKEN
Default Value:
User Viewable:✅
User Editable:✅
SLACK_APP_TOKEN

Slack app token

Environment Variable: SLACK_APP_TOKEN
Default Value:
User Viewable:✅
User Editable:✅
Install Script
#!/bin/bash

apt-get update && apt-get install ca-certificates git -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages


cd /mnt/server

git config --global --add safe.directory /mnt/server
git clone https://github.com/a-sync/game-server-watcher.git . || git pull


npm install --no-save && npm update gamedig && npm run build
npm prune --omit=dev


## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"
Installation Imagenode:20-bookworm-slimInstallation Entrypointbash