multica/src/channels/index.ts
Naiyuan Qing 112ae6cac9 refactor(channels): read config from credentials.json5 instead of separate file
Move channel configuration into the existing credentials.json5 under a
`channels` section, matching OpenClaw's single-config-file approach.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 16:00:44 +08:00

25 lines
724 B
TypeScript

/**
* Channel system bootstrap and exports.
*/
export { ChannelManager } from "./manager.js";
export { registerChannel, getChannel, listChannels } from "./registry.js";
export { loadChannelsConfig } from "./config.js";
export type {
ChannelPlugin,
ChannelMessage,
DeliveryContext,
ChannelAccountState,
ChannelsConfig,
} from "./types.js";
// Built-in channel plugins
import { registerChannel } from "./registry.js";
import { telegramChannel } from "./plugins/telegram.js";
/** Register all built-in channel plugins. Call once at startup. */
export function initChannels(): void {
registerChannel(telegramChannel);
// Future: registerChannel(discordChannel);
// Future: registerChannel(feishuChannel);
}