Repository navigation
wavemelo v0.6.0
wavemelo v0.6.0
Highlights
- Added per-guild session state that is shared safely with Lavalink event
handlers. - Added
/loopwithoff,track, andqueuemodes backed by buffered
internal repeat copies.
Added
GuildStateRegistrywith synchronous atomic loop-mode reads and bounded
snapshots. Standard mutexes are held only for short in-memory operations and
never across.awaitor network I/O./loop <off|track|queue>with same-voice authorization and active-player
checks. Two buffered copies prevent the short race between Lavalink's
automatic advance and event-side replenishment.- Internal loop markers are removed from the queue when modes change, so user
tracks remain authoritative. /nowplayingnow shows the stored loop mode and active filter.- Tests for loop transitions, marker tagging/stripping, snapshot bounds, and
registry reuse.
Changed
- Lavalink is initialized with shared user data so event handlers can access
per-guild session controls without Discord API calls.
Testing and validation
| Gate | Command | Result |
|---|---|---|
| Format | cargo fmt --all -- --check |
passed |
| Check | cargo check --all-targets --locked |
passed |
| Clippy | cargo clippy --all-targets --locked -- -D warnings |
passed |
| Tests | cargo test --locked |
51 passed, 0 failed |
| Release build | cargo build --release --locked |
passed |
| Compose | docker compose config --quiet |
passed |
| Localization scan | Thai Unicode in src/ |
0 matches |
Upgrade instructions
Restart the bot to register /loop. No configuration or Lavalink changes are
required.
Known limitations
- Live Discord interactions and audio output remain unverified without a
running deployment.