Owner Alerts
When something goes wrong, or Anyxa has something to tell you, a notification pops up in the corner of your PC's screen. Problems make the usual notification sound; information is silent.
What raises an alert
| Source | Level | When |
|---|---|---|
| game server | problem | No heartbeat for two minutes (the admin app watches it) |
| game server | info | The heartbeat is back |
| tick step | problem | A part of the server's tick throws |
| database | problem | A database job on the game server fails |
| claude | problem | Claude returns an error to Anyxa, the credit runs out, or she reaches her daily cap |
| anyxa | info | Anyxa reports another GM's request to you |
| connection | problem | Your PC cannot reach the admin app for a minute (raised by the listener itself) |
A failure that keeps repeating is one alert with a count, not one per repeat: within ten minutes, a repeat of an unread alert adds to its count. Your PC shows it again at most every ten minutes. Mark all read on the admin Server page stops the grouping, so the next repeat notifies again.
Anyxa's reports you have not seen in game are also told to you in chat, by her, when you next log in as Yarrbo.
How it works
- The game server writes alerts to the
staff_alertstable (Alerts.cs). - The admin app watches the heartbeat and streams new alerts at
/alerts/stream(AlertStream.cs). It needs theX-Alerts-Keyheader to matchALERTS_KEYin.env. tools/alerts/alert-listener.ps1on your PC stays connected to the stream and shows the notifications. It keeps its place and a log in%LOCALAPPDATA%\Moondog.- The admin Server page lists the last 50 alerts.
Setting it up
ALERTS_KEY is in .env. To start the listener at every login, hidden:
powershell -ExecutionPolicy Bypass -File tools\alerts\install-alert-listener.ps1
-Uninstall removes it. To check notifications work, run
tools\alerts\alert-listener.ps1 -Test.