Skip to content

Commit

Permalink
Merge pull request #51 from Cassius0924/feat-trivia-and-gasoline-price
Browse files Browse the repository at this point in the history
[Feature] 随机冷知识命令和查询汽油价格命令
  • Loading branch information
Cassius0924 authored Feb 5, 2024
2 parents 88601a1 + 1994606 commit 0e1a54f
Show file tree
Hide file tree
Showing 29 changed files with 5,735 additions and 20 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ python3 main.py
- [x] 获取人民日报PDF
- [x] 获取天气预报
- [x] 获取食物热量/卡路里
- [x] 随机获取冷知识
- [x] 获取中石化92号汽油指导价

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

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

## 支持的 Webhook

Expand Down Expand Up @@ -193,6 +196,15 @@ python3 main.py

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

### ⚙️ Gasoline Price Cron 配置

| 配置项 | 解释 | 备注 |
| --- | --- | --- |
| `gasoline_price_cron_enabled` | 功能开关,是否开启定时推送92号汽油指导价 | 默认为 `False` |
| `gasoline_price_cron_rule_list` | 推送规则列表,每个规则包含两个字段:`cron``tasks` | |

关于 `cron``tasks` 的配置见[中石化92号汽油指导价定时任务配置详细](docs/gasoline_price_cron_config_detail.md)

## 插件化

> [!NOTE]
Expand Down
Loading

0 comments on commit 0e1a54f

Please sign in to comment.