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.
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
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 main2026-11-04 22:42:03 -05:00
jared
deleted branch feat/mc-player-status2026-11-04 22:42:03 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Records the service now running on CT 154:
@lotus-mc-bridgeshows the player count and names as its Matrix status, for example3 online: Daisybell_2002, Honnehh, ImpeccableWolf.LoadCredential, underDynamicUser.set_presence=offlineand Synapse would otherwise drop the account to offline.Server offlineas 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