Repository navigation
wavemelo v0.5.0
wavemelo v0.5.0
Highlights
- Added
/seekwith strict timestamp parsing and safe validation against
authoritative Lavalink track metadata. - Added
/nowplayingwith a full playback summary and a progress bar that is
safe for live streams and unknown durations.
Added
src/playback/seek.rs: pure parser for90,01:30, and00:01:30, with
checked arithmetic, rejection of signs/Unicode digits/malformed components,
and track-metadata validation.src/ui/now_playing.rs: owned view data and embed rendering with title, URL,
artist, requester, position, duration, volume, loop, filter, and status.- Slash commands
/seekand/nowplaying.
Changed
- Seek authority comes from
TrackInfo(is_seekable,is_stream,length)
and the position returned by Lavalink afterset_position.
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 |
42 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 the two new slash commands. No configuration or
Lavalink changes are required.
Known limitations
- Seeking exactly to or beyond the track end is rejected rather than clamped.
- Live Discord interactions and audio output still require a live deployment.