Skip to content

Reliability improvements #4

@LBC970

Description

@LBC970

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    reliabilityReliability and stability improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions