https://github.com/cssxsh/mirai-device-generator
Mirai Console 设备文件生成插件
https://github.com/cssxsh/mirai-device-generator
mirai mirai-console mirai-plugin
Last synced: 11 months ago
JSON representation
Mirai Console 设备文件生成插件
- Host: GitHub
- URL: https://github.com/cssxsh/mirai-device-generator
- Owner: cssxsh
- License: agpl-3.0
- Created: 2022-01-26T09:50:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T06:53:58.000Z (over 2 years ago)
- Last Synced: 2025-04-14T12:55:25.983Z (about 1 year ago)
- Topics: mirai, mirai-console, mirai-plugin
- Language: Kotlin
- Homepage:
- Size: 147 KB
- Stars: 111
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Mirai Device Generator](https://github.com/cssxsh/mirai-device-generator)
> Mirai DeviceInfo 生成器
[](https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-device-generator)
作为插件运行时会提供 `BotConfigurationAlterer` 服务,自动替换 `configuration.deviceInfo = generator::load`
如果要重新生成 `DeviceInfo`,删掉 `mcl/bots/.../device.json` 就好
作为 `mirai-core` 项目的[maven库引用](https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-device-generator)时, 请自行调用 `configuration.deviceInfo = generator::load`
目前模拟的设备信息较少,有需求的可以到 issue 提需求,或者直接 pr
需要自定义 model 信息的,请按照 [folder](src/main/resources/xyz/cssxsh/mirai) 中的 json 文件格式
在 `data/mirai-device-generator/` 文件夹中创建同名文件
如果要追求更真实的数据生成·,请使用
## MCL安装
`./mcl --update-package xyz.cssxsh.mirai:mirai-device-generator --channel maven-stable --type plugin`
## board编号参考
### 骁龙系列
| name | board |
|:----:|:-------:|
| 888 | sm8350 |
| 835 | msm8998 |
| 820 | msm8996 |
| 750G | sm7225 |
| 655 | msm8953 |
| 652 | msm8976 |
| 625 | msm8953 |
### 天玑系列
| name | board |
|:-----:|:-------:|
| 1000+ | mt6889z |
| 1000 | mt6889 |
| 1000L | mt6885z |
| 820 | mt6875 |
| 800 | mt6873v |
| 600 | mt6853 |