Skip to main content

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​

SourceLevelWhen
game serverproblemNo heartbeat for two minutes (the admin app watches it)
game serverinfoThe heartbeat is back
tick stepproblemA part of the server's tick throws
databaseproblemA database job on the game server fails
claudeproblemClaude returns an error to Anyxa, the credit runs out, or she reaches her daily cap
anyxainfoAnyxa reports another GM's request to you
connectionproblemYour 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_alerts table (Alerts.cs).
  • The admin app watches the heartbeat and streams new alerts at /alerts/stream (AlertStream.cs). It needs the X-Alerts-Key header to match ALERTS_KEY in .env.
  • tools/alerts/alert-listener.ps1 on 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.