mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:38:25 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -8,7 +8,7 @@ import { readTelegramUpdateOffset, writeTelegramUpdateOffset } from "./update-of
|
||||
|
||||
async function withTempStateDir<T>(fn: (dir: string) => Promise<T>) {
|
||||
const previous = process.env.CLAWDBOT_STATE_DIR;
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-telegram-"));
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-telegram-"));
|
||||
process.env.CLAWDBOT_STATE_DIR = dir;
|
||||
try {
|
||||
return await fn(dir);
|
||||
|
||||
Reference in New Issue
Block a user