mirror of
https://github.com/xmanrui/OpenClaw-bot-review.git
synced 2026-07-27 22:25:52 +00:00
11 lines
350 B
TypeScript
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;
|
|
}
|