diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-02 15:23:51 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-02 15:23:51 +0100 |
| commit | d4ab83f20956fba09133571e14a9a64244b33d64 (patch) | |
| tree | 1f47dd4b1a2307ff806e3d90b63775fccb820c07 /src/tasks | |
| parent | say: post text as a normal message after an invisible ack (diff) | |
| download | senator-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 '')
| -rw-r--r-- | src/tasks/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tasks/mod.rs b/src/tasks/mod.rs index ab0d062..f0585ef 100644 --- a/src/tasks/mod.rs +++ b/src/tasks/mod.rs | |||
| @@ -162,6 +162,7 @@ async fn execute_audio_job(ctx: &CronContext, job: &crate::database::CronJob) { | |||
| 162 | compressed: false, | 162 | compressed: false, |
| 163 | reupload: None, | 163 | reupload: None, |
| 164 | requester: None, | 164 | requester: None, |
| 165 | silent: true, | ||
| 165 | }; | 166 | }; |
| 166 | 167 | ||
| 167 | if let Err(e) = ctx | 168 | if let Err(e) = ctx |
