2024-03-28 12:05:03 +08:00
|
|
|
|
---
|
|
|
|
|
title: 功能命令
|
2024-03-31 10:59:17 +08:00
|
|
|
|
icon: comment
|
2024-03-28 12:05:03 +08:00
|
|
|
|
order: 2
|
|
|
|
|
category: 使用手册
|
2024-03-29 14:58:24 +08:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## 功能插件命令
|
|
|
|
|
|
2024-04-15 18:04:19 +08:00
|
|
|
|
### **轻雪天气`liteyuki_weather`**
|
2024-04-27 02:20:44 +08:00
|
|
|
|
|
2024-05-12 03:04:26 +08:00
|
|
|
|
查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。
|
|
|
|
|
|
2024-03-29 14:58:24 +08:00
|
|
|
|
配置项
|
2024-04-27 02:20:44 +08:00
|
|
|
|
|
2024-03-29 14:58:24 +08:00
|
|
|
|
```yaml
|
2024-04-27 02:20:44 +08:00
|
|
|
|
weather_key: "" # 和风天气的天气key,会自动判断key版本
|
2024-03-29 14:58:24 +08:00
|
|
|
|
```
|
2024-04-15 18:04:19 +08:00
|
|
|
|
|
2024-03-29 14:58:24 +08:00
|
|
|
|
命令
|
2024-04-27 02:20:44 +08:00
|
|
|
|
|
2024-03-29 14:58:24 +08:00
|
|
|
|
```shell
|
2024-04-10 23:47:10 +08:00
|
|
|
|
weather <keywords...> # 查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"
|
2024-03-29 14:58:24 +08:00
|
|
|
|
bind-city <keywords...> # 绑定查询城市,个人全局生效
|
2024-04-15 18:04:19 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
命令别名
|
2024-04-27 02:20:44 +08:00
|
|
|
|
|
2024-04-15 18:04:19 +08:00
|
|
|
|
```shell
|
2024-05-12 03:04:26 +08:00
|
|
|
|
weather|天气
|
|
|
|
|
bind-city|绑定城市
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
|
|
|
|
|
|
### **统计信息`liteyuki_statistics`**
|
|
|
|
|
|
|
|
|
|
统计信息
|
|
|
|
|
命令
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
statistics message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id] # 统计Bot接收到的消息
|
|
|
|
|
# duration: 统计时长,支持格式例如:1d2h3m4s
|
|
|
|
|
# period: 统计周期,支持格式同上
|
|
|
|
|
# group: 统计群组,支持current(当前群聊)和group_id
|
|
|
|
|
# bot: 统计Bot,支持current(当前bot)和bot_id
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
命令别名
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
statistics|stat
|
|
|
|
|
message|m
|
|
|
|
|
--duration|-d
|
|
|
|
|
--period|-p
|
|
|
|
|
--group|-g
|
|
|
|
|
--bot|-b
|
|
|
|
|
current|c
|
2024-03-29 14:58:24 +08:00
|
|
|
|
```
|