minecraft: show players online as the bridge bot's status #62

Merged
jared merged 1 commits from feat/mc-player-status into main 2026-11-04 22:42:03 -05:00
Owner

Records the service now running on CT 154: @lotus-mc-bridge shows the player count and names as its Matrix status, for example 3 online: Daisybell_2002, Honnehh, ImpeccableWolf.

  • Pings the server like the in-game server list; no RCON. Uses the bridge mod's own token, handed over with systemd LoadCredential, under DynamicUser.
  • Re-sends every 20 s, because the mod syncs with set_presence=offline and Synapse would otherwise drop the account to offline.
  • One failed ping is ignored; after two it shows Server offline as away.

Testing: 13 unit tests. Live on CT 154 it stayed online across refreshes with no restarts. The offline path was tested against a fake homeserver and a closed port, not by stopping the real server.

Nothing deploys this automatically: it's on CT 154, not LXC 151, and was installed by hand.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA

Records the service now running on CT 154: `@lotus-mc-bridge` shows the player count and names as its Matrix status, for example `3 online: Daisybell_2002, Honnehh, ImpeccableWolf`. - Pings the server like the in-game server list; no RCON. Uses the bridge mod's own token, handed over with systemd `LoadCredential`, under `DynamicUser`. - Re-sends every 20 s, because the mod syncs with `set_presence=offline` and Synapse would otherwise drop the account to offline. - One failed ping is ignored; after two it shows `Server offline` as away. **Testing:** 13 unit tests. Live on CT 154 it stayed online across refreshes with no restarts. The offline path was tested against a fake homeserver and a closed port, not by stopping the real server. Nothing deploys this automatically: it's on CT 154, not LXC 151, and was installed by hand. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
jared added 1 commit 2026-11-04 22:37:57 -05:00
minecraft: show players online as the bridge bot's status
Lint / Shell (shellcheck) (pull_request) Successful in 26s
Lint / JS (eslint) (pull_request) Successful in 23s
Lint / No secrets in webhook configs (pull_request) Successful in 9s
Lint / No Hookshot webhook IDs in README (pull_request) Successful in 11s
Lint / Landing page is rendered (matrix (pull_request) Successful in 13s
Lint / Python (ruff) (pull_request) Successful in 12s
Lint / Secret scan (gitleaks) (pull_request) Successful in 24s
Lint / Shell (shellcheck) (push) Successful in 27s
Lint / JS (eslint) (push) Successful in 23s
Lint / No Hookshot webhook IDs in README (push) Successful in 5s
Lint / Python deps (pip-audit) (pull_request) Successful in 1m43s
Lint / No secrets in webhook configs (push) Successful in 6s
Lint / Landing page is rendered (matrix (push) Successful in 5s
Lint / Python (ruff) (push) Successful in 7s
Lint / Secret scan (gitleaks) (push) Successful in 8s
Lint / Python deps (pip-audit) (push) Successful in 56s
2d2ebf64a5
A small service on CT 154 pings the Lotus Minecraft server and sets the result
as the Matrix status of @lotus-mc-bridge, re-sent every 20 s because the mod
syncs with set_presence=offline and Synapse would otherwise drop it to offline.
Uses the mod's own token, so no new account or secret.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
jared scheduled this pull request to auto merge when all checks succeed 2026-11-04 22:40:45 -05:00
jared merged commit a73afea6b9 into main 2026-11-04 22:42:03 -05:00
jared deleted branch feat/mc-player-status 2026-11-04 22:42:03 -05:00
Sign in to join this conversation.