mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-10-23 14:22:22 +00:00
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:
1 parent
76ba4f1c0e
commit
2b3f3489bd
4 files changed
+130
-47
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user