refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -147,21 +147,21 @@ describe("commands registry", () => {
});
it("normalizes telegram-style command mentions for the current bot", () => {
expect(normalizeCommandBody("/help@moltbot", { botUsername: "moltbot" })).toBe("/help");
expect(normalizeCommandBody("/help@openclaw", { botUsername: "openclaw" })).toBe("/help");
expect(
normalizeCommandBody("/help@moltbot args", {
botUsername: "moltbot",
normalizeCommandBody("/help@openclaw args", {
botUsername: "openclaw",
}),
).toBe("/help args");
expect(
normalizeCommandBody("/help@moltbot: args", {
botUsername: "moltbot",
normalizeCommandBody("/help@openclaw: args", {
botUsername: "openclaw",
}),
).toBe("/help args");
});
it("keeps telegram-style command mentions for other bots", () => {
expect(normalizeCommandBody("/help@otherbot", { botUsername: "moltbot" })).toBe(
expect(normalizeCommandBody("/help@otherbot", { botUsername: "openclaw" })).toBe(
"/help@otherbot",
);
});