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

@@ -4,7 +4,7 @@ let createTelegramBot: typeof import("./bot.js").createTelegramBot;
let resetInboundDedupe: typeof import("../auto-reply/reply/inbound-dedupe.js").resetInboundDedupe;
const { sessionStorePath } = vi.hoisted(() => ({
sessionStorePath: `/tmp/moltbot-telegram-${Math.random().toString(16).slice(2)}.json`,
sessionStorePath: `/tmp/openclaw-telegram-${Math.random().toString(16).slice(2)}.json`,
}));
const { loadWebMedia } = vi.hoisted(() => ({
@@ -178,10 +178,10 @@ describe("createTelegramBot", () => {
message: {
chat: { id: -100123456789, type: "group", title: "Test Group" },
from: { id: 123456789, username: "testuser" },
text: "@moltbot_bot hello",
text: "@openclaw_bot hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});
@@ -208,10 +208,10 @@ describe("createTelegramBot", () => {
message: {
chat: { id: -100123456789, type: "group", title: "Test Group" },
from: { id: 999999, username: "notallowed" }, // Not in allowFrom
text: "@moltbot_bot hello",
text: "@openclaw_bot hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});
@@ -241,7 +241,7 @@ describe("createTelegramBot", () => {
text: "hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});
@@ -271,7 +271,7 @@ describe("createTelegramBot", () => {
text: "hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});
@@ -301,7 +301,7 @@ describe("createTelegramBot", () => {
text: "hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});
@@ -331,7 +331,7 @@ describe("createTelegramBot", () => {
text: "hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});
@@ -360,7 +360,7 @@ describe("createTelegramBot", () => {
text: "hello",
date: 1736380800,
},
me: { username: "moltbot_bot" },
me: { username: "openclaw_bot" },
getFile: async () => ({ download: async () => new Uint8Array() }),
});