Slack Ignore Events
Use scripts/add_slack_ignore_events.py to insert a Slack ignore event and update daily_punishments.
Run
uv run scripts/add_slack_ignore_events.py 1700000000.000000
uv run scripts/add_slack_ignore_events.py 1700000000.000000 --detected-at "2026-01-26 08:15"
Inputs
slack_message_tsis required and must be unique.--detected-atis optional; accepted formats areYYYY-MM-DD HH:MM,YYYY-MM-DDTHH:MM, orYYYYMMDDHHMM.
Outputs
Prints a single line of JSON:
{"remaining_total": 3}
Notes
- Database URL comes from
DATABASE_URL(default:sqlite:///./app.db). - If a pending/failed
daily_punishmentsrow exists, itsignore_countandpunishment_countare incremented; otherwise a new pending row is created.