A server with "check": true in gameservers-list.json is probed over TCP
every two minutes, on "checkPort" or its game port; games played over UDP
can be checked on a TCP side port such as RCON. Servers without it keep
their manual "active" status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Optional Discord OAuth2 login (identify scope), enabled by
DISCORD_CLIENT_SECRET, WEB_PUBLIC_URL and SESSION_SECRET; restricted to
members of the configured guild, checked at login.
- Stateless 30-day session in a signed HttpOnly SameSite=Lax cookie; the
OAuth state is checked against its own short-lived cookie.
- The jukebox API accepts the key or the session; with the session,
changes must come from the site's own origin. The member's server name
becomes the uploader name.
- GET /auth/me tells the page whether the login is enabled and who is
logged in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Save the queue to storage/runtime/queue.json and restore it at startup,
the interrupted track first; playback resumes once someone is in the
voice channel. Shutdown keeps the queued files instead of deleting them.
- Shuffle the upcoming tracks; loop mode sends finished tracks back to the
end of the queue, except removed or failed ones.
- Rename library tracks (queued copies follow), enqueue the whole library,
optionally shuffled.
- Stream queue and library changes to the web page with Server-Sent Events
(GET /api/events).
- Sanitise the requester name sent when queueing a library track.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Download direct audio links server side (web page and /play), refusing
internal and special addresses at connection time and after every
redirect, with size and time limits.
- /play takes an attachment, a direct link or a library track
(autocomplete), and can keep the file in the library; /skip and /queue
control and show the shared queue.
- Share one ingest path between uploads, links and Discord attachments.
- Answer 413 instead of 500 when the library is full.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Defer the voice commands' reply: updating every member can take longer
than the 3 seconds Discord allows; one member leaving no longer fails the
whole operation.
- Replace the deprecated ephemeral option with MessageFlags, answer command
errors in French and log when that answer itself fails; route
autocomplete interactions to the command.
- Add /readyz, which answers 503 while the bot is not connected to Discord.
- Run npm ci and npm run check on every push; deploy main only when they
pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- POST /api/notifications/dm accepts optional embed (title, description, url, color, thumbnail, fields, footer, timestamp) and link fields; plain text stays required for phone notifications.
- Every value is checked against Discord's limits, and urls and thumbnails must use https; a refused embed answers 400 INVALID_EMBED.
- Sokko TCG uses it to show the destination, the result and the loot of its expedition alerts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Deploy workflow: pin node:24-bookworm; install openssh-client only if missing
- Auth failure limiter counts only 401s (422/404 no longer lock out clients)
- trust proxy configurable (WEB_TRUSTED_PROXIES), never "true"
- DM route: loopback connections only, dedicated NOTIFICATIONS_API_KEY, 503 when unset
- Jukebox: no polling without a key, stop on 401
- /invitation: posts the temporary invite message after checking the link
- Stop tracking storage/library.json; README describes the real deployment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- POST /api/notifications/dm takes a user id and a text, sends it as a direct message with no active mentions, and answers 204, 400, 404 or 422.
- The send logic lives in src/features/directMessages.js with its own tests; the route gets its own per-minute rate limit behind the existing API key.
- Sokko TCG uses it for its opt-in Expedition alerts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>