Files
OpenClaw-bot-review/lib/platforms.ts
T
2026-03-17 16:32:37 +08:00

11 lines
350 B
TypeScript

export function shouldHidePlatformChannel(
channelName: string,
channels: Record<string, any>
): boolean {
return channelName === "wechat-access" && !!channels.wecom && channels.wecom.enabled !== false;
}
export function getPlatformDisplayName(channelName: string): string {
return channelName === "wechat-access" ? "wecom" : channelName;
}