MEDIUM: Split bot.py Event Handlers Into Separate Modules #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
bot.py contains all event handlers in one file, making it large and hard to navigate.
Where It Occurs
Why This Is a Problem
What Can Go Wrong
Scenario 1: Merge Conflict
Scenario 2: Bug in One Handler Affects Others
Proposed Fix
Extract event handlers to separate modules:
Example migration:
Severity
MEDIUM - Large bot.py file is hard to maintain and causes merge conflicts.
Files Affected
bot/bot.py (refactor), new files: bot/message_handler.py, bot/events.py