ClawSkills logoClawSkills

Daily Stoic

发送 Ryan Holiday 的《每日斯多葛》中的每日斯多葛哲学名言。适用于通过电子邮件或 Telegram 设置每日智慧提醒,或者当用户想要时。

介绍

# Daily Stoic

传达来自 Ryan Holiday 所著《每日斯多葛》的每日斯多葛智慧。每一天都有标题、开篇引语和反思。

## 快速开始

```bash # Get today's stoic message python3 {baseDir}/scripts/get-stoic.py

# Get specific date (MM-DD format) python3 {baseDir}/scripts/get-stoic.py 02-03

# Output formats python3 {baseDir}/scripts/get-stoic.py --format text # Plain text (default) python3 {baseDir}/scripts/get-stoic.py --format json # JSON python3 {baseDir}/scripts/get-stoic.py --format html # Email-ready HTML python3 {baseDir}/scripts/get-stoic.py --format telegram # Telegram markdown ```

## 通过 Clawdbot 发送

### Telegram ```bash # Use Clawdbot's message tool with telegram format MESSAGE=$(python3 {baseDir}/scripts/get-stoic.py --format telegram) # Then send via Clawdbot message action ```

### Email(通过 gog skill) ```bash # Generate HTML email HTML=$(python3 {baseDir}/scripts/get-stoic.py --format html)

# Send via gog gmail gog gmail send --to [email protected] --subject "Daily Stoic - $(date +%B\ %d)" --body-html="$HTML" ```

## Cron 设置

安排每天早上 7 点发送: ``` 0 7 * * * python3 /path/to/scripts/get-stoic.py --format telegram | send-to-telegram ```

或者使用带文本的 Clawdbot cron: ``` "Send today's Daily Stoic quote via Telegram and email to the configured recipients" ```

## 数据

- **366 个条目**(包括 2 月 29 日) - 每个条目包含:`date_label`、`title`、`quote`、`source`、`reflection` - 数据文件:`assets/stoic-daily.json`

## 示例输出

**2 月 3 日 —— 你焦虑的根源**

_“当我看到一个焦虑的人时,我会问自己,他们想要什么?”_ —爱比克泰德,《谈话录》,2.13.1

焦虑的父亲,担心他的孩子。他想要什么?一个总是安全的世界……

## 自定义

编辑 `assets/email-template.html` 中的 HTML 模板以匹配你的品牌。

更多产品