mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:58:26 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getChannelPlugin, listChannelPlugins } from "../channels/plugins/index.js";
|
||||
import { formatCliCommand } from "../cli/command-format.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { CONFIG_PATH } from "../config/config.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import { note } from "../terminal/note.js";
|
||||
@@ -9,9 +9,9 @@ import { confirm, select } from "./configure.shared.js";
|
||||
import { guardCancel } from "./onboard-helpers.js";
|
||||
|
||||
export async function removeChannelConfigWizard(
|
||||
cfg: MoltbotConfig,
|
||||
cfg: OpenClawConfig,
|
||||
runtime: RuntimeEnv,
|
||||
): Promise<MoltbotConfig> {
|
||||
): Promise<OpenClawConfig> {
|
||||
let next = { ...cfg };
|
||||
|
||||
const listConfiguredChannels = () =>
|
||||
@@ -24,8 +24,8 @@ export async function removeChannelConfigWizard(
|
||||
if (configured.length === 0) {
|
||||
note(
|
||||
[
|
||||
"No channel config found in moltbot.json.",
|
||||
`Tip: \`${formatCliCommand("moltbot channels status")}\` shows what is configured and enabled.`,
|
||||
"No channel config found in openclaw.json.",
|
||||
`Tip: \`${formatCliCommand("openclaw channels status")}\` shows what is configured and enabled.`,
|
||||
].join("\n"),
|
||||
"Remove channel",
|
||||
);
|
||||
@@ -64,7 +64,7 @@ export async function removeChannelConfigWizard(
|
||||
next = {
|
||||
...next,
|
||||
channels: Object.keys(nextChannels).length
|
||||
? (nextChannels as MoltbotConfig["channels"])
|
||||
? (nextChannels as OpenClawConfig["channels"])
|
||||
: undefined,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user