Skip to content

Commit

Permalink
☘︎ 细节修复
Browse files Browse the repository at this point in the history
  • Loading branch information
CikeyQi committed Apr 22, 2024
1 parent 7fd5383 commit afa1071
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

- 一个适用于 [Yunzai 系列机器人框架](https://github.com/yhArcadia/Yunzai-Bot-plugins-index) 的系统状态查询插件喵~

- 有着更加精简,美观和超超超超超可爱的UI和的风格,并且你可以自定义头图喵~
- 有着更加精简,美观和超超超超超可爱的 UI 和的风格,并且你可以自定义头图喵~

- **使用中遇到问题请加QQ群咨询[707331865](https://qm.qq.com/q/TXTIS9KhO2)**
- **使用中遇到问题请加 QQ 群咨询[707331865](https://qm.qq.com/q/TXTIS9KhO2)**

> [!TIP]
> 在看到 [Koishi](https://koishi.js.org/)[Nonebot](https://nonebot.dev/) 类似风格的插件后,身为猫猫控我与 [CikeyQi](https://github.com/CikeyQi) 立马喜欢上了如此精美的设计,于是决定将这个插件移植到Yunzai上,并重新修改创作了模板加上了自定义头图,人家有的咱们也可以有喵~
> 在看到 [Koishi](https://koishi.js.org/)[Nonebot](https://nonebot.dev/) 类似风格的插件后,身为猫猫控我与 [CikeyQi](https://github.com/CikeyQi) 立马喜欢上了如此精美的设计,于是决定将这个插件移植到 Yunzai 上,并重新修改创作了模板加上了自定义头图,人家有的咱们也可以有喵~
## 安装插件

Expand All @@ -22,7 +22,8 @@ git clone https://github.com/erzaozi/neko-status-plugin.git ./plugins/neko-statu
```

> [!NOTE]
> 如果你的网络环境较差,无法连接到Github,可以使用 [GitHub Proxy](https://mirror.ghproxy.com/) 提供的文件代理加速下载服务
> 如果你的网络环境较差,无法连接到 Github,可以使用 [GitHub Proxy](https://mirror.ghproxy.com/) 提供的文件代理加速下载服务
>
> ```
> git clone https://mirror.ghproxy.com/https://github.com/erzaozi/neko-status-plugin.git ./plugins/neko-status-plugin
> ```
Expand All @@ -40,12 +41,12 @@ pnpm install --filter=neko-status-plugin
## 功能列表
- [x] CPU占用
- [x] CPU 占用
- [x] 内存占用
- [x] 网络上下行速率
- [x] 机器人磁盘占用
- [x] 系统信息
- [x] GPU型号
- [x] GPU 型号
- [x] 插件数量
- [x] 运行时间
Expand All @@ -55,10 +56,9 @@ pnpm install --filter=neko-status-plugin
<img src="https://github.com/erzaozi/neko-status-plugin/assets/61369914/2b99c334-504c-4748-b079-21fd463eeb4c" height="500" alt="renderings"/>
## 常见问题
1. 模板怎么错位了?
+ 可能机器人名字过长。
2. 显示`The Emperor's New XXX` 是什么意思?
+ 获取不到你的设备信息
1. 显示`The Emperor's New XXX` 是什么意思?
- 获取不到你的设备信息
## 支持与贡献 😽
Expand All @@ -67,8 +67,10 @@ pnpm install --filter=neko-status-plugin
有意见或者建议也欢迎提交 [Issues](https://github.com/erzaozi/neko-status-plugin/issues) 和 [Pull requests](https://github.com/erzaozi/neko-status-plugin/pulls)。
## 相关项目 😻
* [Kabuda-czh/koishi-plugin-status-pro](https://github.com/Kabuda-czh/koishi-plugin-status-pro)
* [KomoriDev/nonebot-plugin-kawaii-status](https://github.com/KomoriDev/nonebot-plugin-kawaii-status):NoneBot2 服务器状态查看插件 / View server status for NoneBot2
- [Kabuda-czh/koishi-plugin-status-pro](https://github.com/Kabuda-czh/koishi-plugin-status-pro)
- [KomoriDev/nonebot-plugin-kawaii-status](https://github.com/KomoriDev/nonebot-plugin-kawaii-status):NoneBot2 服务器状态查看插件 / View server status for NoneBot2
## 许可证
本项目使用 [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/) 作为开源许可证。
4 changes: 2 additions & 2 deletions model/getData.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default new class getData {

const data = {
"BotVersion": Version.isMiao ? 'Miao-Yunzai' : Version.isTrss ? 'TRSS-Yunzai' : 'Yunzai',
"BotAvatar": bot.avatar || await bot.pickFriend(bot.uin).getAvatarUrl?.() || 'https://q1.qlogo.cn/g?b=qq&s=0&nk=1',
"BotName": bot.nickname || 'Shizuku',
"BotAvatar": bot.avatar || await bot.pickFriend(bot.uin).getAvatarUrl?.() || `https://q1.qlogo.cn/g?b=qq&s=0&nk=${bot.uin}`,
"BotName": bot.nickname.substring(0, 10) || 'Shizuku',
"HeadImage": await Config.getConfig().headimg_url,
"Dashboard": dashboardData,
"Info": infoData,
Expand Down

0 comments on commit afa1071

Please sign in to comment.