aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-02 15:23:51 +0100
committersalmonik <salmonik@tuta.io>2026-11-02 15:23:51 +0100
commitd4ab83f20956fba09133571e14a9a64244b33d64 (patch)
tree1f47dd4b1a2307ff806e3d90b63775fccb820c07 /src/commands
parentsay: post text as a normal message after an invisible ack (diff)
downloadsenator-sperma-d4ab83f20956fba09133571e14a9a64244b33d64.tar.gz
senator-sperma-d4ab83f20956fba09133571e14a9a64244b33d64.zip
cron: keep scheduled audio silent
Add a per-track silent flag. Cron already uses play_now (interrupt the current track), but play_next_locked still announced the track to the last known text channel; suppress playing and failure announcements for silent tracks, including when a cron track fails to prepare.
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/music.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/music.rs b/src/commands/music.rs
index ecc75c8..245eb88 100644
--- a/src/commands/music.rs
+++ b/src/commands/music.rs
@@ -206,6 +206,7 @@ async fn play_impl(
206 compressed, 206 compressed,
207 reupload: file_reupload.clone(), 207 reupload: file_reupload.clone(),
208 requester: Some(ctx.author().id), 208 requester: Some(ctx.author().id),
209 silent: false,
209 }; 210 };
210 211
211 let outcome = ctx 212 let outcome = ctx