Merge pull request #50 from jeroenvermeulen/fix-wx-gws-usage

Respond to only `wx` and `gwx` command with usage.
This commit is contained in:
Adam Gessaman
2026-02-15 21:11:09 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -85,7 +85,7 @@ class GlobalWxCommand(BaseCommand):
content = content[1:].strip()
content_lower = content.lower()
for keyword in self.keywords:
if content_lower.startswith(keyword + ' '):
if content_lower.startswith(keyword + ' ') or content_lower == keyword:
return True
return False
+1 -1
View File
@@ -124,7 +124,7 @@ class WxCommand(BaseCommand):
content = content[1:].strip()
content_lower = content.lower()
for keyword in self.keywords:
if content_lower.startswith(keyword + ' '):
if content_lower.startswith(keyword + ' ') or content_lower == keyword:
return True
return False