Files
bladwin-RP/lua
nocode 87a8b8d104 feat(scheduler): add announcement scheduler with interval and cron support
Implement BladW.Announcement.RebuildSchedules() to manage scheduled announcements using two mechanisms:

1. Interval-based scheduling: Parse interval strings (e.g., "30m", "90s", "2h", "1d") and create repeating timers
2. Cron-based scheduling: Parse cron expressions (minute hour day month weekday) and execute on matching times

Features:
- ParseInterval() converts duration strings to seconds
- CompileCron() and CronMatches() handle cron expression parsing and matching
- Single consolidated timer monitors all cron entries with 20s tick to avoid duplicates
- Proper cleanup and hot-reload support via _timers tracking
- Validation with helpful warning messages for invalid configurations
2026-07-20 13:36:37 +02:00
..
2026-06-24 10:42:14 +02:00