refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

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