<?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[基于Codex开发的电报群管机器人]]></title><description><![CDATA[<p dir="auto">TG-Go-BOT</p>
<p dir="auto">早期以Hermes开发，后期通过Pi和Codex迭代，用五个群进行了测试，对比目前的其他机器人，反垃圾广告强很多，配置了AI作为最后无法识别的兜底。</p>
<p dir="auto">Telegram 群组治理机器人、Control API 和 Vue 3 管理控制台。</p>
<p dir="auto">项目包含三部分：</p>
<p dir="auto">Go 机器人执行面：消息审核、规则判定、投票、处罚、申诉、白名单和 Agent 对话。<br />
本机 Control API：提供模块能力、配置、运行状态、模型中心和 Agent 契约。<br />
Vue 3 管理控制台：通过认证 BFF 管理群组、规则、模型和运行观测。<br />
特性<br />
分层审核管线：归一化、规则、行为、相似度、模型和人工复核协同工作。<br />
有界并发、持久化副作用队列、重试和运行观测，避免 Telegram API 波动阻塞收包。<br />
群组策略、白名单、申诉和处罚状态统一由机器人与 Control API 管理。<br />
模型渠道、Agent 场景和服务端密钥通过服务端配置管理；密钥不进入前端或 Git。<br />
管理控制台默认要求认证，开发时也可以显式启用本地不安全模式。<br />
快速开始<br />
要求：Go 1.22+、Node.js 20+、npm。</p>
<p dir="auto">git clone <a href="https://github.com/coolwolfqs/tg-go-bot.git" rel="nofollow ugc">https://github.com/coolwolfqs/tg-go-bot.git</a><br />
cd tg-go-bot<br />
cp .env.example .env<br />
编辑 .env，填入 BOT_TOKEN 和其他本地配置<br />
set -a<br />
. ./.env<br />
set +a<br />
go run ./cmd/bot<br />
构建并启动控制台：</p>
<p dir="auto">cd dashboard<br />
npm ci<br />
npm run build<br />
BOT_DATA_DIR=../data DASHBOARD_ALLOW_INSECURE_LOCAL=1 node server/index.js<br />
生产环境必须设置 DASHBOARD_AUTH_TOKEN、CONTROL_API_TOKEN，并通过 systemd EnvironmentFile、容器 Secret 或其他受控密钥系统注入凭据。不要把 .env、运行时 JSON、日志、聊天数据或模型密钥提交到 Git。</p>
<p dir="auto">地址：<a href="https://github.com/coolwolfqs/tg-go-bot" rel="nofollow ugc">https://github.com/coolwolfqs/tg-go-bot</a></p>
]]></description><link>https://lcz.me/topic/1316</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 23:52:08 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1316.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Aug 2026 13:41:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 基于Codex开发的电报群管机器人 on Wed, 26 Aug 2026 01:49:47 GMT]]></title><description><![CDATA[<p dir="auto">"反垃圾广告强很多"</p>
<p dir="auto">有示例吗? 比如, 哪个广告, 在其它机器人那里判断不出来, 在你这里能判断出来?</p>
]]></description><link>https://lcz.me/post/13991</link><guid isPermaLink="true">https://lcz.me/post/13991</guid><dc:creator><![CDATA[crazypeace]]></dc:creator><pubDate>Wed, 26 Aug 2026 01:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to 基于Codex开发的电报群管机器人 on Tue, 25 Aug 2026 13:42:36 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://upload.lcz.me/uploads/6e76cc32-5979-4a08-b17f-04ad73118970.png" alt="exec-df2f4760-f68a-4954-87aa-902f7944c71f.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://lcz.me/post/13896</link><guid isPermaLink="true">https://lcz.me/post/13896</guid><dc:creator><![CDATA[殷玉达]]></dc:creator><pubDate>Tue, 25 Aug 2026 13:42:36 GMT</pubDate></item></channel></rss>