fix(bot,backend): never record without announcing it (#839) #842
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/recording-announcement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #839. This is the consent model's one requirement: a channel announcement when recording begins.
Before: a web-started recording in a campaign with no Discord channel recorded with no announcement. If the announcement post failed, capture kept running while the page reported a failure.
Now: both start paths go join voice → announce → listen.
/record startrefuses, and tells the GM why.channel_id "0", and omits it when there's no channel. A new bot treats missing, null,""or"0"as "no channel". An older bot's 400 on a missing channel is reworded plainly for the GM._stop_recordingonNone.send, so its audio only reached the backend through crash recovery./record stop's reply no longer promise the summary in the channel; it's posted once a GM approves it.Contract:
BOT_CONTRACT_VERSIONstays 2./record/startis the bot's internal HTTP route, and the change is additive: an optional request field and a newannounced_inin the reply.check_version_sync.pypasses.Tests (all written first, and failing on main):
bot/was left unformatted, as always.Follow-ups (a new issue):
/record start's refusal may be public, because the command defers publicly.🤖 Generated with Claude Code