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

@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from "vitest";
import type { MoltbotConfig } from "../../../config/config.js";
import type { OpenClawConfig } from "../../../config/config.js";
type SendMessageDiscord = typeof import("../../../discord/send.js").sendMessageDiscord;
type SendPollDiscord = typeof import("../../../discord/send.js").sendPollDiscord;
@@ -34,7 +34,7 @@ const loadDiscordMessageActions = async () => {
describe("discord message actions", () => {
it("lists channel and upload actions by default", async () => {
const cfg = { channels: { discord: { token: "d0" } } } as MoltbotConfig;
const cfg = { channels: { discord: { token: "d0" } } } as OpenClawConfig;
const discordMessageActions = await loadDiscordMessageActions();
const actions = discordMessageActions.listActions?.({ cfg }) ?? [];
@@ -46,7 +46,7 @@ describe("discord message actions", () => {
it("respects disabled channel actions", async () => {
const cfg = {
channels: { discord: { token: "d0", actions: { channels: false } } },
} as MoltbotConfig;
} as OpenClawConfig;
const discordMessageActions = await loadDiscordMessageActions();
const actions = discordMessageActions.listActions?.({ cfg }) ?? [];
@@ -65,7 +65,7 @@ describe("handleDiscordMessageAction", () => {
to: "channel:123",
message: "hi",
},
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
accountId: "ops",
});
@@ -90,7 +90,7 @@ describe("handleDiscordMessageAction", () => {
pollOption: ["Yes", "No"],
accountId: "marve",
},
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
});
expect(sendPollDiscord).toHaveBeenCalledWith(
@@ -115,7 +115,7 @@ describe("handleDiscordMessageAction", () => {
channelId: "123",
message: "hi",
},
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
accountId: "ops",
});
@@ -141,7 +141,7 @@ describe("handleDiscordMessageAction", () => {
channelId: "123",
message: "hi",
},
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
accountId: "ops",
});