Overview
Several reliability improvements to make the bot more robust and easier to debug.
Tasks
1. Batch user lookups
Currently makes N separate users_info() API calls per participant (lines 717-726). This could hit Slack rate limits or slow down with many participants.
Fix: Use users.list or batch the calls.
2. Better error handling
Several bare except blocks silently swallow errors:
- Lines 723-726: Bare except with fallback to user_id
- Lines 543-544, 546-547, 856-857: Broad
except Exception with pass
- Line 854-855: Silent exception when deleting messages
Fix: Catch specific exceptions and log appropriately.
3. Environment variable validation
No validation on startup — malformed REFERENCE_DATE would crash mid-execution.
Fix: Validate required env vars at startup and fail fast with clear error messages.
Overview
Several reliability improvements to make the bot more robust and easier to debug.
Tasks
1. Batch user lookups
Currently makes N separate
users_info()API calls per participant (lines 717-726). This could hit Slack rate limits or slow down with many participants.Fix: Use
users.listor batch the calls.2. Better error handling
Several bare
exceptblocks silently swallow errors:except ExceptionwithpassFix: Catch specific exceptions and log appropriately.
3. Environment variable validation
No validation on startup — malformed
REFERENCE_DATEwould crash mid-execution.Fix: Validate required env vars at startup and fail fast with clear error messages.