feat(commands): add /usage alias for /status
This commit is contained in:
@@ -44,6 +44,8 @@ describe("control command parsing", () => {
|
||||
expect(hasControlCommand("help")).toBe(false);
|
||||
expect(hasControlCommand("/status")).toBe(true);
|
||||
expect(hasControlCommand("/status:")).toBe(true);
|
||||
expect(hasControlCommand("/usage")).toBe(true);
|
||||
expect(hasControlCommand("/usage:")).toBe(true);
|
||||
expect(hasControlCommand("status")).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ describe("commands registry", () => {
|
||||
expect(detection.exact.has("/help")).toBe(true);
|
||||
expect(detection.regex.test("/status")).toBe(true);
|
||||
expect(detection.regex.test("/status:")).toBe(true);
|
||||
expect(detection.regex.test("/usage")).toBe(true);
|
||||
expect(detection.regex.test("/usage:")).toBe(true);
|
||||
expect(detection.regex.test("/stop")).toBe(true);
|
||||
expect(detection.regex.test("/send:")).toBe(true);
|
||||
expect(detection.regex.test("/debug set foo=bar")).toBe(true);
|
||||
|
||||
@@ -25,7 +25,7 @@ const CHAT_COMMANDS: ChatCommandDefinition[] = [
|
||||
key: "status",
|
||||
nativeName: "status",
|
||||
description: "Show current status.",
|
||||
textAliases: ["/status"],
|
||||
textAliases: ["/status", "/usage"],
|
||||
},
|
||||
{
|
||||
key: "debug",
|
||||
|
||||
Reference in New Issue
Block a user