mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 09:11:12 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
import { type ChildProcess, spawn } from "node:child_process";
|
||||
import { hasBinary } from "../agents/skills.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { createSubsystemLogger } from "../logging/subsystem.js";
|
||||
import { runCommandWithTimeout } from "../process/exec.js";
|
||||
import {
|
||||
@@ -96,7 +96,7 @@ function spawnGogServe(cfg: GmailHookRuntimeConfig): ChildProcess {
|
||||
if (addressInUse) {
|
||||
log.warn(
|
||||
"gog serve failed to bind (address already in use); stopping restarts. " +
|
||||
"Another watcher is likely running. Set CLAWDBOT_SKIP_GMAIL_WATCHER=1 or stop the other process.",
|
||||
"Another watcher is likely running. Set OPENCLAW_SKIP_GMAIL_WATCHER=1 or stop the other process.",
|
||||
);
|
||||
watcherProcess = null;
|
||||
return;
|
||||
@@ -121,7 +121,7 @@ export type GmailWatcherStartResult = {
|
||||
* Start the Gmail watcher service.
|
||||
* Called automatically by the gateway if hooks.gmail is configured.
|
||||
*/
|
||||
export async function startGmailWatcher(cfg: MoltbotConfig): Promise<GmailWatcherStartResult> {
|
||||
export async function startGmailWatcher(cfg: OpenClawConfig): Promise<GmailWatcherStartResult> {
|
||||
// Check if gmail hooks are configured
|
||||
if (!cfg.hooks?.enabled) {
|
||||
return { started: false, reason: "hooks not enabled" };
|
||||
|
||||
Reference in New Issue
Block a user