<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[通过飞书实现HellclientUI手机端通知]]></title><description><![CDATA[<p dir="auto">Hellclient本质是一款自建服务端运行的Mud脚本容器服务。</p>
<p dir="auto">所以在发生意外需要手动处理时，会有发送一个通知给到手机控制APP(HellclientUI)，让用户及时介入处理。</p>
<p dir="auto">对于自建服务来说，自己建一个APP通知服务要求过高，对APP也有保活的需求，所以我建议使用现成的APP的通知来对接HellclientUI的手机端。</p>
<p dir="auto">主流的通知技术叫做webhook,就是在现成APP中申请账号，建立通知的频道(群聊),获取一个通知地址，就能利用这个通知地址发送通知。</p>
<p dir="auto">下面以我使用的飞书为例，介绍开开通webhook的流程</p>
<h2>申请飞书账号</h2>
<p dir="auto">飞书是字节集团下的协同工具，官网地址为</p>
<p dir="auto"><a href="https://www.feishu.cn/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.feishu.cn/</a></p>
<p dir="auto">我们通过 定价按钮，能查看到免费服务的使用范围包括</p>
<ul>
<li>即时消息</li>
<li>云文档</li>
<li>视频会议</li>
<li>多维表格</li>
<li>免费邮箱</li>
</ul>
<p dir="auto">我们点击上面的 <strong>立即免费体验</strong> 按钮，就能创建免费账号了</p>
<h1>创建群组</h1>
<p dir="auto">飞书的通知是通过群组实现的。所以我们需要在客户端里建立一个新的 通知 群组</p>
<p dir="auto">具体参考<a href="https://www.feishu.cn/hc/zh-CN/articles/360025113754-%E5%88%9B%E5%BB%BA%E7%BE%A4%E7%BB%84" target="_blank" rel="noopener noreferrer nofollow ugc">飞书文档</a></p>
<h2>添加机器人</h2>
<p dir="auto">不用担心，机器人不是Mud机器人那种需要写代码的程序，只是在群组里发送通知的一个角色。</p>
<p dir="auto">创建了机器人后，我们会获得一个webhook的网址。这时候我们的mud脚本向这个webhook发送信息，机器人就会直接把我们的消息在飞书的群组里发送出来了。这时候如果我们设置了正确的(和hellclientuiAPP中的服务器地址一致)的地址，就能拉起HellclientUI APP,打开对应的服务器，切换到正确的游戏，直接进行用户操作了。</p>
<p dir="auto">添加机器人参考<a href="https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot" target="_blank" rel="noopener noreferrer nofollow ugc">飞书文档</a></p>
<h2>脚本中调用通知</h2>
<p dir="auto">具体代码很简单可以参考我 newhelljs中的<a href="https://github.com/hellclient-scripts/newhelljs/blob/main/script/src/ui/push.js" target="_blank" rel="noopener noreferrer nofollow ugc">对应部分</a></p>
<p dir="auto">需要注意的是，Hellclient本身有基本的安全防护，脚本调用 webhook及访问飞书服务器需要用户手动授权才可以正常运行。</p>
]]></description><link>https://forum.hellclient.com/topic/14/通过飞书实现hellclientui手机端通知</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 20:57:01 GMT</lastBuildDate><atom:link href="https://forum.hellclient.com/topic/14.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jan 2026 03:21:51 GMT</pubDate><ttl>60</ttl></channel></rss>