From bab3f614f8b42545fdb0101c4e353c87e0966d47 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 18:18:07 +0100 Subject: 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. --- AGENTS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 8352e0e..0c1c2d7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,12 +7,13 @@ src/ ├── main.rs — Entry: init tracing, dotenvy, build Config/Data, start poise+serenity ├── config.rs — Config struct (env-driven), pub const TEMP_PATH ├── error.rs — Unified Error enum + From impls, pub type Result +├── music.rs — MusicState: per-guild queue, now/next/last, skip, auto-advance ├── commands/ │ ├── mod.rs — all_commands() aggregates every submodule │ ├── ai.rs — /senator (OpenRouter chat + optional TTS) │ ├── cron.rs — /cron group (6 subcommands) │ ├── math.rs — /math (qalc subprocess) -│ ├── music.rs — /play (🟡 stub), /stop, /join, /loop_toggle +│ ├── music.rs — /music group (grajcuj, skip, queue, stop, join) + context menu │ ├── qr.rs — /qr encode + decode │ ├── trigger.rs — /trigger group (6 subcommands) │ ├── tts.rs — /tts (local Piper TTS → file/vc), /log_volume @@ -41,12 +42,11 @@ src/ - `build.rs` — compiles C stubs for espeak-rs-sys missing sonic/audio_object symbols ## Stubs to Fill (see COMPARISON.md) -- `commands/music.rs` — `/play` is placeholder - `commands/utilities.rs` — `/compress`, `/convert`, `/download` upload part - `tasks/mod.rs` — cron execution bodies are `info!` only, no actual action ## Database Tables `settings` (key/value), `voice_activity`, `cron_jobs`, `triggers`, `trigger_keywords`, `trigger_responses` -## All Commands (26 total) -`/senator`, `/cron` (6), `/math`, `/play`, `/stop`, `/join`, `/loop_toggle`, `/qr` (2), `/trigger` (6), `/tts`, `/log_volume`, `/compress`, `/convert`, `/upload`, `/search`, `/download`, `/say`, `/web` +## Commands +`/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` -- cgit v1.2.3