2024-06-09 01:31:31 +08:00
|
|
|
|
# Miao-Yunzai
|
2023-03-04 16:12:48 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
这里是Miao-Yunzai V4 测试仓库,
|
2023-03-07 03:19:41 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
你应该积极使用 V3 ,它仍然是长期支持并维护的版本。
|
2023-03-07 03:19:41 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
哪怕 V4 后续发布,V3仍然接受长期支持并维护。
|
2023-05-28 15:25:23 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
在功能点未完成测试之前,仓库不会发布任何有关新功能信息。
|
2023-03-04 16:12:48 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
> 必要环境 Windows/Linux + Chrome/Chromium/Edge
|
2023-03-04 14:30:13 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
> 必要环境 18.18.2>Node.js>16.14.0 + Redis>5.0.0
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
如果你的系统不支持18.18.2版本,最低能下载16.14.0版本,这是最新的puppeteer版本限制。
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
## 使用教程
|
2024-06-09 01:00:25 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
- 安装源码
|
2023-03-04 16:12:48 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
```sh
|
|
|
|
|
git clone --depth=1 -b dev https://github.com/yoimiya-kokomi/Miao-Yunzai.git
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- 安装依赖
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm install pnpm -g
|
|
|
|
|
pnpm install
|
|
|
|
|
```
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
- 启动
|
2023-03-04 14:30:13 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
```sh
|
|
|
|
|
npm run ts:app
|
|
|
|
|
```
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
- 重新登录
|
2023-03-06 08:38:31 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
```sh
|
|
|
|
|
npm run ts:app login
|
|
|
|
|
```
|
2023-03-07 03:19:41 +08:00
|
|
|
|
|
2024-06-09 01:00:07 +08:00
|
|
|
|
> [开发相关](./DEV.md)
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
## 环境补充
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
### Centos
|
2023-03-07 03:19:41 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
```sh
|
|
|
|
|
yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y
|
2023-03-04 14:30:13 +08:00
|
|
|
|
```
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
- 字体
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
```sh
|
|
|
|
|
yum groupinstall fonts -y
|
2023-03-04 14:30:13 +08:00
|
|
|
|
```
|
2023-04-30 14:32:10 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
- libstdc
|
2023-04-30 14:32:10 +08:00
|
|
|
|
|
2024-06-08 21:07:07 +08:00
|
|
|
|
下载 [libstdc++.so.6.0.29.zip](https://baiyin1314.lanzouq.com/i8Nr21ig8hyf)
|
2023-05-28 15:25:23 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
将 **解压缩后** 的文件放在/usr/lib64/中
|
2023-05-28 15:25:23 +08:00
|
|
|
|
|
2023-04-30 14:32:10 +08:00
|
|
|
|
```sh
|
2024-06-08 20:52:49 +08:00
|
|
|
|
cd /usr/lib64/
|
|
|
|
|
sudo mv libstdc++.so.6 libstdc++.so.6.bak
|
|
|
|
|
sudo ln -s libstdc++.so.6.0.29 libstdc++.so.6
|
2023-04-30 14:32:10 +08:00
|
|
|
|
```
|
2023-05-28 15:25:23 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
# Unknown file ".ts"
|
2023-04-30 14:32:10 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
node >= 20.0.0
|
2023-05-28 15:25:23 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
```ts
|
|
|
|
|
ts-node alemon.config.ts
|
2023-04-30 14:32:10 +08:00
|
|
|
|
```
|
2023-05-28 15:25:23 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
更改为
|
2023-04-30 14:32:10 +08:00
|
|
|
|
|
2024-06-08 20:52:49 +08:00
|
|
|
|
```ts
|
|
|
|
|
node --no-warnings=ExperimentalWarning --loader ts-node/esm alemon.config.ts
|
2024-01-31 04:13:59 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-03-04 14:30:13 +08:00
|
|
|
|
## 致谢
|
2023-03-05 06:42:24 +08:00
|
|
|
|
|
2024-06-08 21:07:07 +08:00
|
|
|
|
| Nickname | Contribution |
|
|
|
|
|
| :-----------------------------------------------------------: | -------------------- |
|
|
|
|
|
| [Yunzai v3.0](https://gitee.com/le-niao/Yunzai-Bot) | 乐神的Yunzai-Bot V3 |
|
|
|
|
|
| [GardenHamster](https://github.com/GardenHamster/GenshinPray) | 模拟抽卡背景素材来源 |
|
|
|
|
|
| [西风驿站](https://bbs.mihoyo.com/ys/collection/839181) | 角色攻略图来源 |
|
|
|
|
|
| [米游社友人A](https://bbs.mihoyo.com/ys/collection/428421) | 角色突破素材图来源 |
|
|
|
|
|
| [icqq](https://github.com/icqqjs/icqq) | ICQQ |
|