LiteyukiBot/docs/usage/extra_command.md

59 lines
1.1 KiB
Markdown
Raw Normal View History

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