mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:18:27 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -376,7 +376,7 @@ export async function monitorWebChannel(
|
||||
|
||||
if (loggedOut) {
|
||||
runtime.error(
|
||||
`WhatsApp session logged out. Run \`${formatCliCommand("clawdbot channels login --channel web")}\` to relink.`,
|
||||
`WhatsApp session logged out. Run \`${formatCliCommand("moltbot channels login --channel web")}\` to relink.`,
|
||||
);
|
||||
await closeListener();
|
||||
break;
|
||||
|
||||
@@ -9,7 +9,7 @@ const baseConfig = {
|
||||
groups: { "*": { requireMention: true } },
|
||||
},
|
||||
},
|
||||
session: { store: "/tmp/clawdbot-sessions.json" },
|
||||
session: { store: "/tmp/moltbot-sessions.json" },
|
||||
} as const;
|
||||
|
||||
describe("applyGroupGating", () => {
|
||||
|
||||
@@ -252,7 +252,7 @@ export async function processMessage(params: {
|
||||
const responsePrefix =
|
||||
prefixContext.responsePrefix ??
|
||||
(configuredResponsePrefix === undefined && isSelfChat
|
||||
? (resolveIdentityNamePrefix(params.cfg, params.route.agentId) ?? "[clawdbot]")
|
||||
? (resolveIdentityNamePrefix(params.cfg, params.route.agentId) ?? "[moltbot]")
|
||||
: undefined);
|
||||
|
||||
const ctxPayload = finalizeInboundContext({
|
||||
|
||||
@@ -12,7 +12,7 @@ describe("getSessionSnapshot", () => {
|
||||
vi.useFakeTimers();
|
||||
vi.setSystemTime(new Date(2026, 0, 18, 5, 0, 0));
|
||||
try {
|
||||
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-snapshot-"));
|
||||
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-snapshot-"));
|
||||
const storePath = path.join(root, "sessions.json");
|
||||
const sessionKey = "agent:main:whatsapp:dm:s1";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user