Implement feed manager configuration and refactor command settings

- Added a new [Feed_Manager] section in the configuration to enable or disable RSS/API feed subscriptions, defaulting to false.
- Updated the FeedManager class to handle missing configuration sections gracefully, ensuring compatibility with upgrades.
- Refactored joke command configuration to standardize the use of an `enabled` key, replacing legacy `*_enabled` keys for clarity.
- Adjusted the PathCommand class to enable the "p" shortcut by default, improving user experience.
This commit is contained in:
agessaman committed 2026-02-12 22:03:02 -08:00
1 parent 8bac56d229
commit 3575d025ba
5 files changed
+69 -26

No files matched your search

+2 -2
View File
@@ -125,8 +125,8 @@ class PathCommand(BaseCommand):
self.medium_confidence_symbol = bot.config.get('Path_Command', 'medium_confidence_symbol', fallback='📍')
self.low_confidence_symbol = bot.config.get('Path_Command', 'low_confidence_symbol', fallback='❓')
# Check if "p" shortcut is enabled (off by default)
self.enable_p_shortcut = bot.config.getboolean('Path_Command', 'enable_p_shortcut', fallback=False)
# Check if "p" shortcut is enabled (on by default)
self.enable_p_shortcut = bot.config.getboolean('Path_Command', 'enable_p_shortcut', fallback=True)
if self.enable_p_shortcut:
# Add "p" to keywords if enabled
if "p" not in self.keywords: