refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
1 parent
83460df96f
commit
6d16a658e5
1839 files changed
+11250
-11199
No files matched your search
@@ -23,7 +23,7 @@ import {
|
||||
TelegramConfigSchema,
|
||||
type ChannelMessageActionAdapter,
|
||||
type ChannelPlugin,
|
||||
type ClawdbotConfig,
|
||||
type MoltbotConfig,
|
||||
type ResolvedTelegramAccount,
|
||||
} from "clawdbot/plugin-sdk";
|
||||
|
||||
@@ -408,7 +408,7 @@ export const telegramPlugin: ChannelPlugin<ResolvedTelegramAccount> = {
|
||||
},
|
||||
logoutAccount: async ({ accountId, cfg }) => {
|
||||
const envToken = process.env.TELEGRAM_BOT_TOKEN?.trim() ?? "";
|
||||
const nextCfg = { ...cfg } as ClawdbotConfig;
|
||||
const nextCfg = { ...cfg } as MoltbotConfig;
|
||||
const nextTelegram = cfg.channels?.telegram ? { ...cfg.channels.telegram } : undefined;
|
||||
let cleared = false;
|
||||
let changed = false;
|
||||
|
||||
Reference in new issue
Block a user