名称: daily-stoic
描述: 发送来自瑞安·霍利迪所著《每日斯多葛》的每日斯多葛哲学名言。适用于通过电子邮件或Telegram设置每日智慧提醒,或当用户需要特定日期的斯多葛名言时。支持全年366天,包含标题、名言和反思。
每日推送瑞安·霍利迪所著《每日斯多葛》中的斯多葛智慧。每日内容包含一个标题、开篇名言和反思。
# 获取今日的斯多葛名言
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格式
MESSAGE=$(python3 {baseDir}/scripts/get-stoic.py --format telegram)
# 然后通过Clawdbot的消息操作发送
# 生成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和电子邮件向配置的收件人发送今日的每日斯多葛名言"
date_label、title、quote、source、reflectionassets/stoic-daily.json2月3日 — 焦虑的根源
"当我看到一个焦虑的人,我会问自己,他们想要什么?"
——爱比克泰德,《论说集》,2.13.1
那位为孩子担忧的焦虑父亲。他想要什么?一个永远安全的世界……
编辑 assets/email-template.html 中的HTML模板,以匹配您的品牌风格。