mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 08:00:59 +00:00
mom: add [SILENT] response marker for periodic events
When mom responds with just [SILENT], the status message is deleted and nothing is posted to Slack. Useful for periodic events that check for activity but find nothing to report.
This commit is contained in:
parent
d6809328da
commit
8ba6aa6627
5 changed files with 36 additions and 1 deletions
|
|
@ -130,9 +130,16 @@ When an event is dequeued and executes:
|
|||
- For one-shot: `[EVENT:dentist.json:one-shot:2025-12-15T09:00:00+01:00] Remind Mario`
|
||||
- For periodic: `[EVENT:daily-inbox.json:periodic:0 9 * * 1-5] Check inbox`
|
||||
3. After execution:
|
||||
- If response is `[SILENT]`: delete status message, post nothing to Slack
|
||||
- Immediate and one-shot: delete the event file
|
||||
- Periodic: keep the file, event will trigger again on schedule
|
||||
|
||||
## Silent Completion
|
||||
|
||||
For periodic events that check for activity (inbox, notifications, etc.), mom may find nothing to report. To avoid spamming the channel, mom can respond with just `[SILENT]`. This deletes the "Starting event..." status message and posts nothing to Slack.
|
||||
|
||||
Example: A periodic event checks for new emails every 15 minutes. If there are no new emails, mom responds `[SILENT]`. If there are new emails, mom posts a summary.
|
||||
|
||||
## File Naming
|
||||
|
||||
Event files should have descriptive names ending in `.json`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue