Files
nanobot/nanobot/channels/discord/webui/locales/zh-CN.json
T
chengyongruandGitHub 462a0dfb0f refactor(channels): make built-in channels self-contained (#4908)
* refactor(channels): own setup and instance contracts

* refactor(channels): isolate management contracts

* refactor(channels): normalize activation contracts

* fix(channels): enforce management contracts

* refactor(channels): finish setup ownership migration

* fix(channels): harden management contracts

* fix(channels): enforce lazy loading and runtime ownership

* fix(feishu): make multi-instance startup idempotent

* fix(webui): render channel setup contracts cleanly

* fix(feishu): stop websocket clients cleanly

* fix(channels): enforce persistence and activation gates

* fix(channels): preserve global feature action scope

* fix(channels): apply defaults for single plugins

* fix(channels): enforce management contract boundaries

* refactor(feishu): remove identity helper indirection

* fix(channels): preserve management setup contracts

* refactor(channels): generalize instance settings UI

* refactor(channels): package channel plugins with web UI metadata

* refactor(channels): make built-ins self-contained packages

* test(channels): colocate tests with channel packages

* fix(dingtalk): use official brand icon

* feat(channels): colocate webui translations

* docs(channels): clarify plugin ownership

* test(exec): remove output wait race

* refactor(channels): unify plugin descriptors

* fix(channels): enforce descriptor-owned contracts

* refactor(channels): finish package-owned plugin setup

* refactor(channels): use repository-owned packages only

* fix(channels): self-describe dependencies and runtime state

* fix(channels): warn about legacy entry points
2026-07-19 23:30:49 +08:00

40 lines
1.4 KiB
JSON

{
"description": "在 Discord 服务器和私信中使用 nanobot。",
"requirements": "Discord 机器人令牌、权限和网关",
"setup": {
"docsLabel": "打开 Discord 配置指南",
"officialLabel": "打开 Discord 开发者后台",
"tryIt": "在服务器中提及机器人,或向它发送私信。",
"summary": "启用只会打开 Discord 支持;还需要机器人令牌和服务器权限。",
"steps": [
"在 Discord Developer Portal 中创建机器人并复制令牌。",
"将机器人邀请到服务器,并授予读取/发送消息及斜杠命令权限。",
"保存并启用 Discord,然后提及机器人或发送私信。"
],
"fields": {
"token": {
"label": "机器人令牌",
"placeholder": "Discord 机器人令牌",
"help": "从 Discord Developer Portal 的 Bot 页面创建。"
},
"allowChannels": {
"label": "允许的频道",
"placeholder": "频道 ID,用逗号分隔",
"help": "留空则允许机器人可读取的所有频道。"
},
"groupPolicy": {
"label": "群组行为",
"choices": {
"mention": "仅提及时",
"open": "所有消息",
"allowlist": "白名单"
}
},
"allowFrom": {
"label": "允许的用户",
"placeholder": "用户 ID,用逗号分隔"
}
}
}
}