Merge pull request #46 from Nanaloveyuki/main

🌐 📝 日常优化文档, 提供多语言支持
This commit is contained in:
Snowykami 2024-07-01 17:30:16 +08:00 committed by GitHub
commit 28d730a2ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 76 additions and 59 deletions

View File

@ -1,59 +1,70 @@
--- ---
title: 功能命令 title: 功能命令
icon: comment icon: comment
order: 2 order: 2
category: 使用手册 category: 使用手册
--- ---
## 功能插件命令 ## 功能插件命令
### **轻雪天气`liteyuki_weather`** ### **轻雪天气`liteyuki_weather`**
查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。 查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。
配置项 配置项
```yaml ```yaml
weather_key: "" # 和风天气的天气key会自动判断key版本 weather_key: "" # 和风天气的天气key会自动判断key版本
``` ```
命令 命令
```shell ```shell
weather <keywords...> # 查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku" weather <keywords...> # Keywords为城市名支持中英文
bind-city <keywords...> # 绑定查询城市,个人全局生效 ```
``` 查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"
命令别名 ```shell
bind-city <keywords...> # Keywords为城市名支持中英文
```shell ```
weather|天气
bind-city|绑定城市 绑定查询城市,个人全局生效
```
#### 命令别名
***
| 命令 | 别名 |
### **统计信息`liteyuki_statistics`** | :-------: | :------- |
| weather | 天气 |
统计信息 | bind-city | 绑定城市 |
命令
---
```shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id] # 统计Bot接收到的消息 ### **统计信息`liteyuki_statistics`**
# duration: 统计时长支持格式例如1d2h3m4s
# period: 统计周期,支持格式同上 统计信息
# group: 统计群组支持current(当前群聊)和group_id 命令
# bot: 统计Bot支持current(当前bot)和bot_id
``` ```shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]
命令别名 ```
```shell 功能: 用于统计Bot接收到的消息, 统计周期为`period`, 统计时间范围为`duration`
statistic|stat
message|m | 参数 | 格式 |
--duration|-d | :------: | :------------------------------------------------------------: |
--period|-p | duration | 使用通用日期简写: `1d`(天), `1h`(小时), `45m`(分钟), `14s`(秒) |
--group|-g | period | 使用通用日期简写: `1d`(天), `1h`(小时), `45m`(分钟), `14s`(秒) |
--bot|-b | group | `current` (当前群聊) 或 `group_id` (QQ群号) |
current|c | bot | `current` (当前Bot) 或 `bot_id` |
```
#### 命令别名
| 命令 | 别名 |
| :----------: | :---: |
| `statistic` | stat |
| `message` | m |
| `--duration` | -d |
| --period` | -p |
| `--group` | -g |
| `--bot` | -b |
| `current` | c |

View File

@ -0,0 +1,2 @@
stat.message=Statistics message
stat.rank=Speech ranking

View File

@ -0,0 +1,2 @@
stat.message=Messages statistiques
stat.rank=Classement des discours

View File

@ -0,0 +1,2 @@
stat.message=Рейтинг выступлений
stat.rank=Рейтинг выступлений