OC Alert Triggers
AA Only PremiumThree independent Discord alerts that fire based on OC crime conditions, all posting to a configurable alert channel.
Alert 1: CPR Out of Bounds
Fires when a crime in Recruiting phase has CPR outside the configured band for one or more slots.
Triggers on: CPR below the minimum or above the maximum. The alert includes the crime name, the affected slot, the member's CPR, and the configured band.
Supports two levels of configuration:
- Global band — applies to all crimes unless overridden
- Per-crime-name overrides — set a different min/max for a specific crime name (e.g. tighter thresholds for high-difficulty crimes)
Alert 2: Availability Delay
Fires when an assigned member is in hospital or abroad at the time the crime reaches ready_at.
Optionally fires earlier: set a lead time (1–1440 minutes) to receive the alert in advance as a heads-up before the crime is ready. Default is no lead (alert fires at ready_at).
Alert 3: Missing Tool/Material
Fires when a filled slot has an item requirement and the assigned member does not have the required item in their inventory, within a configurable lead window before ready_at (default 24 hours).
The check uses the Torn API's is_available flag on the slot's item requirement. This reflects the assigned member's actual inventory — it does not check other members.
This alert fires during the Planning phase only. Recruiting-phase slots are not yet filled, so there is no assigned member to check.
This alert has its own channel and ping role, separate from the shared alert channel used by CPR and Availability alerts.
Deduplication
Each alert fires once per (crime, member) pair. Alerts clear after 7 days or when the crime or assignment changes.
Configuration Fields
| Field | Description |
|---|---|
| Alerts Channel | Discord channel for CPR and Availability alerts |
| Alerts Ping Role | Optional role to ping on each alert |
| CPR Alert | Enable/disable + global min/max + per-crime overrides |
| Availability Alert | Enable/disable + lead minutes |
| Missing Item Alert | Enable/disable + own channel + own ping role + lead hours |
