Skip to content

Commit 0e1a54f

Browse files
authored
Merge pull request #51 from Cassius0924/feat-trivia-and-gasoline-price
[Feature] 随机冷知识命令和查询汽油价格命令
2 parents 88601a1 + 1994606 commit 0e1a54f

29 files changed

+5735
-20
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ python3 main.py
9393
- [x] 获取人民日报PDF
9494
- [x] 获取天气预报
9595
- [x] 获取食物热量/卡路里
96+
- [x] 随机获取冷知识
97+
- [x] 获取中石化92号汽油指导价
9698

9799
> [!TIP]
98100
> 更多命令使用 `/help` 命令查看。
@@ -101,6 +103,7 @@ python3 main.py
101103

102104
- [x] 消息转发,需[配置](#%EF%B8%8F-message-forwarding-配置)
103105
- [x] 天气预报定时推送,需[配置](#%EF%B8%8F-weather-cron-配置)
106+
- [x] 中石化92号汽油指导价定时推送,需[配置](#%EF%B8%8F-gasoline-price-cron-配置)
104107

105108
## 支持的 Webhook
106109

@@ -193,6 +196,15 @@ python3 main.py
193196

194197
关于命令名称可选值详见[自定义命令关键词配置详细](docs/custom_command_key_config_detail.md)
195198

199+
### ⚙️ Gasoline Price Cron 配置
200+
201+
| 配置项 | 解释 | 备注 |
202+
| --- | --- | --- |
203+
| `gasoline_price_cron_enabled` | 功能开关,是否开启定时推送92号汽油指导价 | 默认为 `False` |
204+
| `gasoline_price_cron_rule_list` | 推送规则列表,每个规则包含两个字段:`cron``tasks` | |
205+
206+
关于 `cron``tasks` 的配置见[中石化92号汽油指导价定时任务配置详细](docs/gasoline_price_cron_config_detail.md)
207+
196208
## 插件化
197209

198210
> [!NOTE]

0 commit comments

Comments
 (0)