From d31240a08fc687df07467f8f0571688b1a1437fa Mon Sep 17 00:00:00 2001 From: tech-fever <105153585+tech-fever@users.noreply.github.com> Date: Sun, 3 Jul 2022 15:31:04 +0800 Subject: [PATCH 1/2] Update case3.md --- docs/case/case3.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/case/case3.md b/docs/case/case3.md index 17ec3c3f..f3445246 100644 --- a/docs/case/case3.md +++ b/docs/case/case3.md @@ -9,5 +9,28 @@ 开源Telegram机器人项目,可以基于API实时查询哪吒面板的服务器信息。 - [x] 支持中/英多语言切换 -- [x] 支持分组统计(CPU磁盘内存上下行速度流量统计等) +- [x] 支持分组统计(CPU、磁盘、内存、上下行速度、流量统计等) - [x] 支持实时刷新单个服务器数据 +- [x] 支持键盘互动查询 +- [x] 支持命令直接查询 +- [x] 增加群聊判断,限制群聊可发送命令 +- [x] 增加群聊内5秒自动删除信息 +- [x] 支持docker部署 + +## 命令列表 +| 命令 | 功能 | 仅私聊 | +| --- | --- | --- | +| start | 开始使用键盘主菜单 | ✔️ | +| help | 帮助列表 | ❌ | +| add | 添加面板链接和token | ✔️ | +| url | 添加面板链接 | ✔️ | +| token | 添加面板token | ✔️ | +| info | 获取保存的面板链接和token | ✔️ | +| delete | 删除保存的面板链接和token | ✔️ | +| id | 命令后面添加整数id,来进行单个服务器信息查询(私聊带刷新按钮,群聊不带) | ❌ | +| all | 查询所有服务器的统计信息 | ❌ | +| search | 在服务器名字中搜索关键字(支持多个,用空格分开) | ❌ | + +## 效果展示 +![image](https://user-images.githubusercontent.com/105153585/175813727-bef77a8e-ff46-4fd4-b41b-43902abf6159.png#pic_left) +![image](https://user-images.githubusercontent.com/105153585/175813645-4df4f4c7-2591-4133-9645-21c7db2f62ab.png#pic_right) From aa7d75b0d6bfc7e74e58815a006716a744ff6b80 Mon Sep 17 00:00:00 2001 From: tech-fever <105153585+tech-fever@users.noreply.github.com> Date: Sun, 3 Jul 2022 15:55:40 +0800 Subject: [PATCH 2/2] Update case3.md --- docs/en_US/case/case3.md | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/docs/en_US/case/case3.md b/docs/en_US/case/case3.md index 8df6a0fe..f141b9b5 100644 --- a/docs/en_US/case/case3.md +++ b/docs/en_US/case/case3.md @@ -6,8 +6,28 @@ GitHub project: [nezha_telegram_bot](https://github.com/tech-fever/nezha_telegra ## Features -Open source Telegram bot project that can query the server information of the Nezha Monitoring in real time based on the API. -- [x] Support Chinese/English multi-language switch -- [x] Support tag statistics (CPU, disk, memory, upstream and downstream speed, data transfer statistics, etc.) +- [x] Support Chinese/English multi-language switch +- [x] Support tag statistics (CPU, disk, memory, upstream and downstream speed, traffic statistics, etc.) - [x] Support real-time refresh of single server data +- [x] Support keyboard interactive query +- [x] Support query by command +- [x] Support adding bot to group, privacy protection of bot replies in group chat +- [x] Support bot messages automatic deletion in group chat within 20 seconds +- [x] Support docker deployment + +## Commands list + +Command | Description | Private chat only +--- | --- | --- +start | Getting started with the keyboard main menu | ✔️ +help | help message | ❌ +add | Add Nezha monitoring url link and token | ✔️ +url | Add Nezha monitoring url link | ✔️ +token | Add Nezha monitoring token | ✔️ +info | Get saved Nezha monitoring url link and token | ✔️ +delete | Delete saved Nezha monitoring url link and token | ✔️ +id | Add an integer id after the command to query the information of a single server (refresh button only available in private chat) | ❌ +all | Query statistics for all servers | ❌ +search | Search for keywords in server names (multiple keywords supported, split by spaces) | ❌ +