Skip to content

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. 😎

egg-game-server-watcher.json

updated

Ports

Add an allocation on the node for each port.

  • Web 8081

Install

Installer image
node:20-bookworm-slim
Install script
19 lines

Image

  • Node.js 20 ghcr.io/ptero-eggs/yolks:nodejs_20

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

9 variables

Startup command

env PORT=8081 /usr/local/bin/node /home/container/dist/server.js

Dotted values come from the server settings. These values are examples.

  • Admin secret

    SECRETUsers can edit

    required|string|min:8|max:255A value is required.

  • Writable folder for data storage

    DATA_PATHUsers can edit

    required|string|min:1|max:255

  • Game server info refresh interval in minutes

    REFRESH_TIME_MINUTESUsers can edit

    required|integer|min:1

  • Discord bot token

    DISCORD_BOT_TOKENUsers can edit

    nullable|string

  • Telegram bot token

    TELEGRAM_BOT_TOKENUsers can edit

    nullable|string

  • Steam web API key

    STEAM_WEB_API_KEYUsers can edit

    nullable|string

  • Enable or disable debug mode.

    DBGUsers can edit

    required|in:0,1

  • Slack bot token

    SLACK_BOT_TOKENUsers can edit

    nullable|string

  • Slack app token

    SLACK_APP_TOKENUsers can edit

    nullable|string

Wings

Stop command
^^C
Running when the console shows
starting loop...

Readme

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.)

Port default
Web 8081

Changes

  1. Import chatbots

    · Daniel Barton · f917e8a

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 19 lines bash in node:20-bookworm-slim Show
#!/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 "-----------------------------------------"