Sol's Stat Tracker Feed
An open-source Node.js app that relays live global messages to Discord via webhooks.
Sol's Stat Tracker Feed is an open-source Node.js app that relays global stat found messages to one or more Discord channels via webhooks. Run it on your own machine or server to pipe live Sol's RNG activity directly into Discord without any bot permissions.
Requirements
- Node.js (any current LTS release) - download it from nodejs.org and run the installer for your OS.
- A Discord webhook URL for each channel you want to receive messages. In Discord, go to Server Settings > Integrations > Webhooks > New Webhook, pick the channel, then click Copy Webhook URL.
Setup
- Download the latest release from GitHub and extract it.
- Create a
config.jsonfile in the root of the extracted folder (see below). - Open a terminal in that folder and run
npm install. - Run
npm startto begin relaying messages.
Config
Create a config.json file in the project root and fill in your webhook URL:
{
"webhooks": [
{
"url": "YOUR_DISCORD_WEBHOOK_URL",
"active": true
}
],
"websocket": {
"url": "wss://stream.solsstattracker.com/global-messages/embed",
"initialReconnectDelayMillis": 1000,
"maxReconnectDelayMillis": 30000
}
}- You can add as many webhook objects as you like. Only entries with
"active": truewill receive messages. - The reconnect settings use exponential backoff, starting at 1 second and capping at 30 seconds.
Raw websocket endpoint
If you are building your own integration and need unformatted JSON payloads instead of pre-built Discord embeds, connect to wss://stream.solsstattracker.com/global-messages/raw instead.
Keeping it running
The relay stops when the terminal closes. For persistent operation, use a process manager like PM2: install it with npm install -g pm2, then start the app with pm2 start npm -- start.