OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  daily-stoic:每日发送《每日斯多葛》中的哲学语录

daily-stoic:每日发送《每日斯多葛》中的哲学语录

 
  vulnerability ·  2026-02-22 17:47:33 · 3 次点击  · 0 条评论  

名称: daily-stoic
描述: 发送来自瑞安·霍利迪所著《每日斯多葛》的每日斯多葛哲学名言。适用于通过电子邮件或Telegram设置每日智慧提醒,或当用户需要特定日期的斯多葛名言时。支持全年366天,包含标题、名言和反思。


Daily Stoic

每日推送瑞安·霍利迪所著《每日斯多葛》中的斯多葛智慧。每日内容包含一个标题、开篇名言和反思。

快速开始

# 获取今日的斯多葛名言
python3 {baseDir}/scripts/get-stoic.py

# 获取指定日期(MM-DD格式)
python3 {baseDir}/scripts/get-stoic.py 02-03

# 输出格式选项
python3 {baseDir}/scripts/get-stoic.py --format text    # 纯文本(默认)
python3 {baseDir}/scripts/get-stoic.py --format json    # JSON格式
python3 {baseDir}/scripts/get-stoic.py --format html    # 适用于邮件的HTML格式
python3 {baseDir}/scripts/get-stoic.py --format telegram # Telegram Markdown格式

通过 Clawdbot 发送

Telegram

# 使用Clawdbot的消息工具,配合telegram格式
MESSAGE=$(python3 {baseDir}/scripts/get-stoic.py --format telegram)
# 然后通过Clawdbot的消息操作发送

电子邮件(通过 gog 技能)

# 生成HTML格式的邮件内容
HTML=$(python3 {baseDir}/scripts/get-stoic.py --format html)

# 通过 gog gmail 发送
gog gmail send --to recipient@email.com --subject "Daily Stoic - $(date +%B\ %d)" --body-html="$HTML"

定时任务设置

设置每日早上7点自动发送:

0 7 * * * python3 /path/to/scripts/get-stoic.py --format telegram | send-to-telegram

或使用 Clawdbot 的定时任务功能,并附带文本描述:

"通过Telegram和电子邮件向配置的收件人发送今日的每日斯多葛名言"

数据

  • 共366条记录(包含2月29日)
  • 每条记录包含:date_labeltitlequotesourcereflection
  • 数据文件:assets/stoic-daily.json

示例输出

2月3日 — 焦虑的根源

"当我看到一个焦虑的人,我会问自己,他们想要什么?"
——爱比克泰德,《论说集》,2.13.1

那位为孩子担忧的焦虑父亲。他想要什么?一个永远安全的世界……

自定义

编辑 assets/email-template.html 中的HTML模板,以匹配您的品牌风格。

3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor