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 /AGENTS.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-- | AGENTS.md | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -7,12 +7,13 @@ src/ | |||
| 7 | ├── main.rs — Entry: init tracing, dotenvy, build Config/Data, start poise+serenity | 7 | ├── main.rs — Entry: init tracing, dotenvy, build Config/Data, start poise+serenity |
| 8 | ├── config.rs — Config struct (env-driven), pub const TEMP_PATH | 8 | ├── config.rs — Config struct (env-driven), pub const TEMP_PATH |
| 9 | ├── error.rs — Unified Error enum + From impls, pub type Result<T> | 9 | ├── error.rs — Unified Error enum + From impls, pub type Result<T> |
| 10 | ├── music.rs — MusicState: per-guild queue, now/next/last, skip, auto-advance | ||
| 10 | ├── commands/ | 11 | ├── commands/ |
| 11 | │ ├── mod.rs — all_commands() aggregates every submodule | 12 | │ ├── mod.rs — all_commands() aggregates every submodule |
| 12 | │ ├── ai.rs — /senator (OpenRouter chat + optional TTS) | 13 | │ ├── ai.rs — /senator (OpenRouter chat + optional TTS) |
| 13 | │ ├── cron.rs — /cron group (6 subcommands) | 14 | │ ├── cron.rs — /cron group (6 subcommands) |
| 14 | │ ├── math.rs — /math (qalc subprocess) | 15 | │ ├── math.rs — /math (qalc subprocess) |
| 15 | │ ├── music.rs — /play (🟡 stub), /stop, /join, /loop_toggle | 16 | │ ├── music.rs — /music group (grajcuj, skip, queue, stop, join) + context menu |
| 16 | │ ├── qr.rs — /qr encode + decode | 17 | │ ├── qr.rs — /qr encode + decode |
| 17 | │ ├── trigger.rs — /trigger group (6 subcommands) | 18 | │ ├── trigger.rs — /trigger group (6 subcommands) |
| 18 | │ ├── tts.rs — /tts (local Piper TTS → file/vc), /log_volume | 19 | │ ├── tts.rs — /tts (local Piper TTS → file/vc), /log_volume |
| @@ -41,12 +42,11 @@ src/ | |||
| 41 | - `build.rs` — compiles C stubs for espeak-rs-sys missing sonic/audio_object symbols | 42 | - `build.rs` — compiles C stubs for espeak-rs-sys missing sonic/audio_object symbols |
| 42 | 43 | ||
| 43 | ## Stubs to Fill (see COMPARISON.md) | 44 | ## Stubs to Fill (see COMPARISON.md) |
| 44 | - `commands/music.rs` — `/play` is placeholder | ||
| 45 | - `commands/utilities.rs` — `/compress`, `/convert`, `/download` upload part | 45 | - `commands/utilities.rs` — `/compress`, `/convert`, `/download` upload part |
| 46 | - `tasks/mod.rs` — cron execution bodies are `info!` only, no actual action | 46 | - `tasks/mod.rs` — cron execution bodies are `info!` only, no actual action |
| 47 | 47 | ||
| 48 | ## Database Tables | 48 | ## Database Tables |
| 49 | `settings` (key/value), `voice_activity`, `cron_jobs`, `triggers`, `trigger_keywords`, `trigger_responses` | 49 | `settings` (key/value), `voice_activity`, `cron_jobs`, `triggers`, `trigger_keywords`, `trigger_responses` |
| 50 | 50 | ||
| 51 | ## All Commands (26 total) | 51 | ## Commands |
| 52 | `/senator`, `/cron` (6), `/math`, `/play`, `/stop`, `/join`, `/loop_toggle`, `/qr` (2), `/trigger` (6), `/tts`, `/log_volume`, `/compress`, `/convert`, `/upload`, `/search`, `/download`, `/say`, `/web` | 52 | `/senator`, `/cron` (6), `/math`, `/music` (5: grajcuj, skip, queue, stop, join), `/qr` (2), `/trigger` (6), `/tts`, `/log_volume`, `/compress`, `/convert`, `/upload`, `/search`, `/download`, `/say`, `/web`, `/record`, `/leaderboard` |
