LOW: Deduplicate MOOD_EMOJIS mapping between moods.py and evil_mode.py #44
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?
Problem
The mood-to-emoji mapping dictionary is defined in two separate files:
While the evil mode has a different set of moods than regular mode, the pattern of defining emoji mappings is duplicated. If a new mood is added or an emoji needs to change, both files must be updated. The nickname-update logic that applies the emoji is also duplicated.
Proposed Solution
Create a shared mood constants module:
Then both moods.py and evil_mode.py import from mood_constants.py instead of defining their own mappings.
Impact
Files Affected