diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 18:18:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 18:18:07 +0100 |
| commit | bab3f614f8b42545fdb0101c4e353c87e0966d47 (patch) | |
| tree | c257bc4712bba088bea2eab42d93b07e9cfed89c /README.md | |
| parent | music: add per-guild queue with now/next/last, skip and queue (diff) | |
| download | senator-sperma-bab3f614f8b42545fdb0101c4e353c87e0966d47.tar.gz senator-sperma-bab3f614f8b42545fdb0101c4e353c87e0966d47.zip | |
music: group playback commands under /music
Graduate grajcuj/skip/queue/stop/join into the /music parent and drop the
top-level names. On startup, reconcile global slash commands and delete
any that are no longer registered, since Discord otherwise keeps stale
commands after a rename or move.
Docs updated for the new command layout and queue semantics.
Diffstat (limited to '')
| -rw-r--r-- | README.md | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -66,9 +66,11 @@ servers. | |||
| 66 | - `/senator` — chat with the OpenRouter model | 66 | - `/senator` — chat with the OpenRouter model |
| 67 | 67 | ||
| 68 | ### Music (songbird) | 68 | ### Music (songbird) |
| 69 | - `/grajcuj` — play from Copyparty search, a direct URL, or an uploaded file | 69 | - `/music grajcuj` — play from Copyparty search, a direct URL, or an uploaded file; optional `position` (`now`, `next`, `last`, default `last`) |
| 70 | - `/stop` — stop playback and leave voice | 70 | - `/music queue` — show the current track followed by the pending queue |
| 71 | - `/join` — join the caller's voice channel | 71 | - `/music skip` — stop the current track and play the next queued one |
| 72 | - `/music stop` — stop playback, clear the queue, and leave voice | ||
| 73 | - `/music join` — join the caller's voice channel | ||
| 72 | 74 | ||
| 73 | ### TTS | 75 | ### TTS |
| 74 | - `/tts` — local Piper TTS (Polish, Google Translate fallback), sent as a file or played in voice | 76 | - `/tts` — local Piper TTS (Polish, Google Translate fallback), sent as a file or played in voice |
| @@ -112,7 +114,7 @@ servers. | |||
| 112 | 114 | ||
| 113 | The runtime is organised around a shared `Data` struct (poise `user_data`) | 115 | The runtime is organised around a shared `Data` struct (poise `user_data`) |
| 114 | that holds the DB pool, HTTP client, Copyparty client, voice manager, the | 116 | that holds the DB pool, HTTP client, Copyparty client, voice manager, the |
| 115 | in-memory trigger cache, autocomplete cache, and per-guild music track handles. | 117 | in-memory trigger cache, autocomplete cache, and per-guild music queue. |
| 116 | 118 | ||
| 117 | - `src/main.rs` — boot: tracing, dotenvy, Config, DB pool, framework, cron task | 119 | - `src/main.rs` — boot: tracing, dotenvy, Config, DB pool, framework, cron task |
| 118 | - `src/config.rs` — env-driven `Config` + variable validation | 120 | - `src/config.rs` — env-driven `Config` + variable validation |
