bash
cp -r ~/.openclaw/workspace/skills/news-daily /path/to/your/openclaw/workspace/skills/
方式一:环境变量(推荐)
bash
export NEWS_DAILY_WEBHOOK="你的Webhook地址"
方式二:配置文件
bash
vim ~/.openclaw/workspace/skills/news-daily/scripts/config.json
json
{
"webhook_url": "https://open.feishu.cn/open-apis/bot/v2/hook/xxx",
"date": "today",
"categories": {
"国内": 10,
"国际": 10,
"科技": 10,
"AI": 10
}
}
bash
python3 ~/.openclaw/workspace/skills/news-daily/scripts/fetch_and_send.py
bash
openclaw config set hooks.internal.entries.news-daily.enabled true
openclaw config set hooks.internal.entries.news-daily.systemEvent "news-daily"
openclaw config set hooks.internal.entries.news-daily.action.kind "exec"
openclaw config set hooks.internal.entries.news-daily.action.command "python3 ~/.openclaw/workspace/skills/news-daily/scripts/fetch_and_send.py"
openclaw gateway restart
分类来源国内中国新闻网、人民日报国际纽约时报、BBC、卫报科技36氪、少数派、TechCrunch、The VergeAIInfoQ、机器之心、MIT 科技评论、VentureBeat
详细说明见 README.md