perf: use channel.purge() instead of per-message delete loops (#93) #108

Merged
cal merged 1 commits from ai/major-domo-v2#93 into next-release 2026-03-20 17:44:30 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
8878ce85f7 perf: use channel.purge() instead of per-message delete loops (#93)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m16s
Closes #93

Replace sequential message.delete() loops with channel.purge() bulk
delete in three locations:
- commands/admin/management.py: admin_clear_scorecards (up to 100 msgs)
- tasks/live_scorebug_tracker.py: _post_scorebugs_to_channel (25 msgs)
- tasks/live_scorebug_tracker.py: _clear_live_scores_channel (25 msgs)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 12:02:26 -05:00