MEDIUM: Refactor profile_picture_manager.py Into Separate Classes #25
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?
profile_picture_manager.py mixes face detection, image processing, and Discord operations, making it hard to test and maintain.
Where It Occurs
Why This Is a Problem
What Can Go Wrong
Scenario 1: Testing Face Detection
Scenario 2: Reusing Face Detection
Proposed Fix
Extract into separate classes:
Example classes:
Severity
MEDIUM - Monolithic class is hard to test and maintain.
Files Affected
bot/profile_picture_manager.py (refactor), new files: bot/face_detection.py, bot/image_processing.py, bot/discord_avatar.py