- Play every track through an ffmpeg process that normalises loudness
(EBU R128) and outputs Ogg Opus, handed to Discord as is: no more Opus
encoding in JavaScript with opusscript. Measured at over 40x real time,
about 2% of a core while playing. Closing the stream kills ffmpeg.
- Encoding at upload instead was ruled out: over two minutes for an 85-minute
mix, during which the upload would hang.
- Read duration, title and artist with ffprobe at upload; default the title
to "Artist - Title" or the file name without extension.
- Fill the duration of existing library entries at startup.
- Expose the position of the current track in queue snapshots.
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>
- Adding a track or someone joining the voice channel now resumes a queue
suspended because the bot was alone; before, only the Play button did.
- Retry the voice connection with backoff instead of giving up after one
failed attempt.
- Keep playing when the head of the queue changes while connecting.
- Requeue the interrupted track when the bot leaves an empty channel or
loses its voice connection.
- Removing the current track no longer answers 404; other bots no longer
count as listeners.
- Accept uploads whatever MIME type the browser sends (ffprobe validates the
content) and clean temporary files hourly, sparing queued ones.
- Web page: refresh again after an action instead of reusing a stale
request, disable buttons while a request runs, show the real start time and
custom titles, and support drag and drop.
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>