Skip to content

wavemelo v0.5.0

Choose a tag to compare

@prxmel4 prxmel4 released this 28 Nov 06:55
· 28 commits to main since this release

wavemelo v0.5.0

Highlights

  • Added /seek with strict timestamp parsing and safe validation against
    authoritative Lavalink track metadata.
  • Added /nowplaying with a full playback summary and a progress bar that is
    safe for live streams and unknown durations.

Added

  • src/playback/seek.rs: pure parser for 90, 01:30, and 00: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 /seek and /nowplaying.

Changed

  • Seek authority comes from TrackInfo (is_seekable, is_stream, length)
    and the position returned by Lavalink after set_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.