OpenClaw从入门到应用——频道:Tlon

张开发
2026/5/31 5:13:11 15 分钟阅读
OpenClaw从入门到应用——频道:Tlon
通过OpenClaw实现副业收入《OpenClaw赚钱实录从“养龙虾“到可持续变现的实践指南》插件要求Tlon 以插件形式提供不捆绑在核心安装包中。通过 CLInpm registry安装theme{theme:{light:min-light,dark:min-dark}}openclaw pluginsinstallopenclaw/tlon本地检出从 git 仓库运行时theme{theme:{light:min-light,dark:min-dark}}openclaw pluginsinstall./extensions/tlon详细信息插件链接已替换为https://blog.csdn.net/hy592070616/article/details/81707766设置安装 Tlon 插件。获取你的飞船 URL 和登录码。配置channels.tlon。重启网关。私信机器人或在群组频道中提及它。最小配置单个账户theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { enabled: true, ship: ~sampel-palnet, url: https://your-ship-host, code: lidlut-tabwed-pillex-ridrup, ownerShip: ~your-main-ship, // 推荐你的飞船始终允许 }, }, }私有/局域网飞船默认情况下OpenClaw 会阻止私有/内部主机名和 IP 范围以进行 SSRF 防护。如果你的飞船运行在私有网络localhost、局域网 IP 或内部主机名上你必须明确选择加入theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { url: http://localhost:8080, allowPrivateNetwork: true, }, }, }这适用于如下 URLhttp://localhost:8080http://192.168.x.x:8080http://my-ship.local:8080⚠️ 仅在你信任本地网络时启用此选项。此设置会禁用对飞船 URL 请求的 SSRF 防护。群组频道自动发现默认启用。你也可以手动固定频道theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { groupChannels: [chat/~host-ship/general, chat/~host-ship/support], }, }, }禁用自动发现theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { autoDiscoverChannels: false, }, }, }访问控制DM 白名单空 不允许任何 DM使用ownerShip进行审批流程theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { dmAllowlist: [~zod, ~nec], }, }, }群组授权默认受限theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { defaultAuthorizedShips: [~zod], authorization: { channelRules: { chat/~host-ship/general: { mode: restricted, allowedShips: [~zod, ~nec], }, chat/~host-ship/announcements: { mode: open, }, }, }, }, }, }所有者与审批系统设置一个所有者飞船以便在未授权用户尝试交互时接收审批请求theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { ownerShip: ~your-main-ship, }, }, }所有者飞船在所有地方自动获得授权——DM 邀请会被自动接受频道消息始终允许。你不需要将所有者添加到dmAllowlist或defaultAuthorizedShips中。当设置后所有者会收到以下情况的 DM 通知来自不在白名单中的飞船的 DM 请求在未授权频道中的提及群组邀请请求自动接受设置自动接受 DM 邀请针对 dmAllowlist 中的飞船theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { autoAcceptDmInvites: true, }, }, }自动接受群组邀请theme{theme:{light:min-light,dark:min-dark}} { channels: { tlon: { autoAcceptGroupInvites: true, }, }, }投递目标CLI/cron与openclaw message send或 cron 投递一起使用DM~sampel-palnet或dm/~sampel-palnet群组chat/~host-ship/channel或group:~host-ship/channel捆绑技能Tlon 插件包含一个捆绑的技能tloncorp/tlon-skill该技能提供对 Tlon 操作的 CLI 访问联系人获取/更新个人资料列出联系人频道列出、创建、发布消息、获取历史记录群组列出、创建、管理成员私信发送消息、对消息作出反应反应为帖子和私信添加/移除表情反应设置通过斜杠命令管理插件权限该技能在插件安装后自动可用。功能特性功能状态直接消息✅ 支持群组/频道✅ 支持默认需要提及才能响应线程✅ 支持在线程中自动回复富文本✅ Markdown 转换为 Tlon 格式图片✅ 上传到 Tlon 存储反应✅ 通过捆绑技能实现投票❌ 暂不支持原生命令✅ 支持默认仅所有者可用故障排除首先运行以下诊断命令theme{theme:{light:min-light,dark:min-dark}}openclaw status openclaw gateway status openclaw logs--followopenclaw doctor常见失败原因DM 被忽略发送者不在dmAllowlist中且未配置ownerShip进行审批流程。群组消息被忽略频道未被发现或发送者未授权。连接错误检查飞船 URL 是否可访问对于本地飞船启用allowPrivateNetwork。认证错误验证登录码是否最新登录码会轮换。配置参考完整配置配置链接已替换为https://blog.csdn.net/hy592070616/article/details/81707766提供者选项channels.tlon.enabled启用/禁用频道启动。channels.tlon.ship机器人的 Urbit 飞船名称例如~sampel-palnet。channels.tlon.url飞船 URL例如https://sampel-palnet.tlon.network。channels.tlon.code飞船登录码。channels.tlon.allowPrivateNetwork允许 localhost/LAN URL绕过 SSRF。channels.tlon.ownerShip用于审批系统的所有者飞船始终授权。channels.tlon.dmAllowlist允许发送 DM 的飞船空 无。channels.tlon.autoAcceptDmInvites自动接受来自白名单飞船的 DM。channels.tlon.autoAcceptGroupInvites自动接受所有群组邀请。channels.tlon.autoDiscoverChannels自动发现群组频道默认true。channels.tlon.groupChannels手动固定的频道巢。channels.tlon.defaultAuthorizedShips对所有频道授权的飞船。channels.tlon.authorization.channelRules按频道的授权规则。channels.tlon.showModelSignature在消息后附加模型名称。备注群组回复需要提及例如~your-bot-ship才能响应。线程回复如果入站消息在线程中OpenClaw 会在线程中回复。富文本Markdown 格式粗体、斜体、代码、标题、列表会被转换为 Tlon 的原生格式。图片URL 会被上传到 Tlon 存储并作为图片块嵌入。

更多文章