← 返回
沟通协作 Key 中文

ai-twitter-digest

Monitor a curated list of AI/tech Twitter accounts, summarize the day's key posts using an LLM, and deliver a formatted digest to a Discord channel. Use when...
监控精选的AI/科技推特账号,利用大语言模型汇总每日重点推文,并将整理好的摘要发送至Discord频道。
fredhjc
沟通协作 clawhub v1.0.1 1 版本 99883.6 Key: 需要
★ 1
Stars
📥 838
下载
💾 23
安装
1
版本
#latest

概述

AI Twitter Digest

Fetches tweets from AI/tech influencers via the AISA API, summarizes in Chinese using any available LLM (Claude → OpenAI → Gemini, auto-detected), and delivers a two-part digest to Discord:

  • Message 1: Text summary with [原文链接] hyperlinks (no embed previews)
  • Message 2: Top 5 bare links rendered as Discord card previews

Setup

1. Run the setup wizard (required before first use)

python3 scripts/setup.py

The wizard will:

  • Auto-detect API keys from your environment and OpenClaw config
  • Prompt for any missing keys (AISA, LLM, Discord channel)
  • Test connectivity to AISA and your chosen LLM provider
  • Write a .env file — no manual editing needed

> If you prefer manual setup, create scripts/.env with the following content:

>

> ```env

> AISA_API_KEY=your_aisa_key_here

> DELIVERY_CHANNEL=discord

> DELIVERY_TARGET=channel:your_channel_id_here

> SUMMARY_LANGUAGE=Chinese

> ANTHROPIC_API_KEY=

> OPENAI_API_KEY=

> GEMINI_API_KEY=

> # STATE_FILE=~/.ai-twitter-sent.json

> # MAX_STORED_IDS=500

> # CARD_PREVIEWS=true

> ```

Required config:

VariableDescription
-----------------------
AISA_API_KEYTwitter data — aisa.one
DELIVERY_CHANNELdiscord / whatsapp / telegram / slack / signal
DELIVERY_TARGETChannel-specific target (see table below)
One of: ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEYLLM for summarization
SUMMARY_LANGUAGEDigest language — Chinese (default), English, Japanese, Korean, Spanish, French, German, or any language name

Delivery target format:

ChannelTarget formatExample
--------------------------------
discordchannel:channel:1234567890
whatsappE.164 phone or group:+1234567890
telegram@username or chat_id@mychannel
slack#channel-name#ai-digest
signalE.164 phone number+1234567890

> Card link previews (CARD_PREVIEWS) are Discord-only and auto-disabled on other channels.

2. Run manually

python3 scripts/monitor.py

3. Schedule with OpenClaw cron

# Daily at 3:30 PM Eastern
openclaw cron add "AI Twitter Digest" "30 15 * * *" \
  "python3 /path/to/ai-twitter-digest/scripts/monitor.py" \
  --timezone "America/New_York"

Customizing Accounts

Edit the ACCOUNTS list in scripts/monitor.py. See references/accounts.md for the default list and suggested additions.

Output Format

Message 1 — Summary:

📊 **AI 每日简报** — 2026年02月26日

- Karpathy 发布了神经网络教程 | [原文链接](...)

- Sam Altman 表示 GPT-5 今年发布 | [原文链接](...)

Message 2 — Card previews:

🔗 **今日精选链接**

https://x.com/karpathy/status/...
https://x.com/sama/status/...

How It Works

  1. Fetches up to 20 tweets/account (AI-keyword filtered, with all-tweets fallback)
  2. Deduplicates against STATE_FILE (capped at MAX_STORED_IDS)
  3. Summarizes with first available LLM provider
  4. Posts two Discord messages: text digest + card preview links
  5. Updates dedup state file

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 20:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

AI News Feed API

fredhjc
查询AI新闻订阅API,获取来自57+精选Twitter/X账号的实时AI/ML新闻,用于用户询问AI新闻、热门AI话题、最新动态等场景。
★ 0 📥 660
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,599
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,462