feat: Enhance command help functionality with channel restrictions

- Updated the CommandManager to include channel restrictions for help keyword processing, ensuring that help requests are only handled in monitored channels or DMs when enabled.
- Improved the HTML documentation for commands by adding a new "General Commands" section and refining existing command descriptions.
- Added new CSS styles for better presentation of command subcommands in the website documentation.
This commit is contained in:
agessaman committed 2026-01-15 17:56:27 -08:00
1 parent 76ba4f1c0e
commit 2b3f3489bd
4 files changed
+130 -47

No files matched your search

+5
View File
@@ -30,6 +30,11 @@ class BaseCommand(ABC):
cooldown_seconds: int = 0
category: str = "general"
# Documentation fields - to be overridden by subclasses for website generation
usage: str = "" # Usage syntax, e.g., "wx <zipcode|city> [tomorrow|7d|hourly|alerts]"
examples: List[str] = [] # Example commands, e.g., ["wx 98101", "wx seattle tomorrow"]
parameters: List[Dict[str, str]] = [] # Parameter definitions, e.g., [{"name": "location", "description": "US zip code or city name"}]
def __init__(self, bot):
self.bot = bot
self.logger = bot.logger