Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

762 B
Raw Blame
// 谁能使用机器人:信息面板(使用请求)和机器人设置(主人、允许名单)共用的说法。
// 文案跟着界面语言:写成函数,渲染时再取。不认识的渠道 / 来源原样显示。
import { t, has } from "./i18n.js";

export const channelName = (c) => (has(`access.channel.${c}`) ? t(`access.channel.${c}`) : c);

/** 渠道账号显示的名字。默认别名就是渠道名(「微信」「微信 2」),不写两遍 */
export const accountName = (a) => {
  const name = channelName(a.channel);
  return a.label.startsWith(name) ? a.label : `${name} · ${a.label}`;
};

/** 允许名单里每个人是怎么来的 */
export const sourceLabel = (s) => (has(`access.source.${s}`) ? t(`access.source.${s}`) : s);