闲社服务运行正常AI智能体自动化平台
b

实时新闻聚合

技能标识:buzz

Real-time news aggregator with Discord & Telegram push. Manage Jin10, BlockBeats, RSS, X KOLs, Polymarket, OpenNews via REST API.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

实时新闻聚合

Buzz 技能

安装、运行并管理一个实时新闻聚合器,支持 Discord 和 Telegram 推送通知。所有配置均通过 REST API 完成,支持热重载——无需重启。

基础 URL: http://localhost:3848(默认,可通过 dashboard.port 配置)

快速设置

bash
git clone https://github.com/zxcnny930/buzz.git
cd buzz
npm install
cp config.example.json config.json
npm start

仪表盘位于 http://localhost:3848,设置页面位于 /settings.html?lang=en。

身份验证

如果设置了仪表盘密码,所有 /api/* 端点都需要 ?pw=PASSWORD:

bash
curl -s http://localhost:3848/api/config?pw=YOUR_PASSWORD

如果密码为空字符串,则无需身份验证。

重要提示:以下所有 curl 示例为简洁起见省略了 ?pw=。如果服务器配置了密码,请在每个 URL 后附加 ?pw=PASSWORD。

认证失败响应(HTTP 401):

json
{ ok: false, error: Unauthorized }



API 端点

1. 获取当前配置

bash
curl -s http://localhost:3848/api/config

返回完整的配置 JSON。敏感字段(apiKey、token、botToken、password)在响应中会被替换为 ••••••。

2. 更新配置(部分更新,热重载)

POST /api/config 接受部分更新。只需发送您想要更改的部分。

启用金十数据,轮询间隔 10 秒:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {jin10: {enabled: true, pollIntervalMs: 10000}}

禁用 Polymarket:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {polymarket: {enabled: false}}

设置 Discord webhook:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {discord: {webhookUrl: https://discord.com/api/webhooks/...}}

启用 Telegram:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {telegram: {enabled: true, botToken: 123456:ABC-DEF, chatId: -1001234567890}}

添加 RSS 源:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {rssFeeds: [{enabled: true, name: CoinDesk, feedUrl: https://www.coindesk.com/arc/outboundfeeds/rss/?outputType=xml, pollIntervalMs: 300000, color: 3447003}]}

注意:rssFeeds 是一个数组——发送它会替换整个数组,而不是追加。

配置 OpenNews AI 过滤:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {opennews: {enabled: true, pollIntervalMs: 60000, minScore: 70, signals: [long], coins: [BTC, ETH], engineTypes: [news, listing]}}

配置 Polymarket 警报:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {polymarket: {enabled: true, minChangePp: 5, zThreshold: 2.5, volSpikeThreshold: 2.0, minLiquidity: 10000, tagIds: [21, 120], excludeTagIds: [100639]}}

设置 AI 翻译模型:

bash
curl -s -X POST http://localhost:3848/api/config \
-H Content-Type: application/json \
-d {grok: {apiKey: xai-..., model: grok-4.1-fast, baseUrl: https://api.x.ai/v1}}

成功响应:

json
{ ok: true }

验证错误响应:

json
{
ok: false,
errors: [polymarket.zThreshold must be > 0, dashboard.port must be 1024-65535]
}

3. 获取源状态

bash
curl -s http://localhost:3848/api/status

响应:

json
{
jin10: { active: true, interval: 15000 },
blockbeats: { active: true, interval: 30000 },
polymarket: { active: true, interval: 180000 },
x6551: { active: true, interval: 3600000 },
opennews: { active: false, interval: 60000 },
rss:https://www.blocktempo.com/feed/: { active: true, interval: 300000 }
}

每个键是一个源标识符。RSS 源以 rss: 为前缀,后跟其 feed URL。

4. 管理 KOL 跟踪列表

列出所有跟踪的账户:

bash
curl -s -X POST http://localhost:3848/api/kols \
-H Content-Type: application/json \
-d {action: list}

响应:

json
{ ok: true, kols: [elonmusk, VitalikButerin] }

添加 KOL:

bash
curl -s -X POST http://localhost:3848/api/kols \
-H Content-Type: application/json \
-d {action: add, username: caboronli}

响应:

json
{ ok: true, kols: [elonmusk, VitalikButerin, caboronli] }

如果已存在:

json
{ ok: true, message: already exists, kols: [elonmusk, VitalikButerin, caboronli] }

移除 KOL:

bash
curl -s -X POST http://localhost:3848/api/kols \
-H Content-Type: application/json \
-d {action: remove, username: elonmusk}

响应:

json
{ ok: true, kols: [VitalikButerin, caboronli] }

如果用户名未找到:

json
{ ok: false, error: not found, kols: [VitalikButerin, caboronli] }

用户名字符串会被修剪,@ 前缀会自动去除。

5. 健康检查

bash
curl -s http://localhost:3848/health

响应:

json
{ ok: true, clients: 2, history: 150 }

  • - clients:活跃的 SSE 连接数
  • history:内存中的事件数

无需身份验证。

6. 服务器推送事件(实时流)

bash
curl -s -N http://localhost:3848/sse

以 SSE 格式流式传输实时新闻事件。连接时,首先发送所有历史事件,然后实时到达新事件。每 15 秒发送一次心跳。



完整配置模式

jin10

字段类型默认值验证描述
enabledbooleantrue启用金十数据快讯
pollIntervalMs
number | 15000 | >= 5000 | 轮询间隔(毫秒) | | onlyImportant | boolean | true | | 仅推送重要项目 |

blockbeats

字段类型默认值验证描述
enabledbooleantrue启用 BlockBeats
pollIntervalMs
number | 30000 | >= 5000 | 轮询间隔 | | onlyImportant | boolean | true | | 仅推送重要项目 | | lang | string |

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 news-monitor-1776285305 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 news-monitor-1776285305 技能

通过命令行安装

skillhub install news-monitor-1776285305

下载

⬇ 下载 buzz v1.0.0(免费)

文件大小: 6.12 KB | 发布时间: 2026-4-16 17:31

v1.0.0 最新 2026-4-16 17:31
Buzz v1.0.0: Initial release – real-time news aggregator with REST API and Discord/Telegram push.

- Aggregates news from Jin10, BlockBeats, RSS, X KOLs, Polymarket, and OpenNews.
- REST API for all configuration, supporting hot-reload with no restarts.
- Discord and Telegram push notifications supported.
- Includes endpoints for config, status, KOL management, health check, and real-time SSE news stream.
- Supports password-protected endpoints (optional) and redacts sensitive fields from responses.
- Detailed examples and schema provided in documentation.
返回顶部