mirror of
https://github.com/N1ngYu/SaltBot.git
synced 2025-09-28 08:42:40 +08:00
Update README.md
This commit is contained in:
@@ -14,7 +14,7 @@ A QQbot Based on Nonebot.
|
||||
4. Download the [resource file](https://alist.error063.work/Games/res.zip) for maicard and put it into Step8's resource path. *The resource file and script code are from [Error063](https://github.com/Error063/maicard?tab=readme-ov-file)
|
||||
5. Create a nonebot project at another place and copy .venv/pyvenv.cfg to the bot folder.
|
||||
6. Change the configuration on .env.prod.
|
||||
7. Change the script path on /.venv/Lib/site-packages/nonebot_plugin_maimai_helper/__init__.py, line 87, 93, 201, 204 and line 205. (Please ignore my sh!t code, thanks:()
|
||||
7. Change the script(generate_img.py) path on /.venv/Lib/site-packages/nonebot_plugin_maimai_helper/\_\_init\_\_.py, line 87, 93, 201, 204 and line 205. (Please ignore my sh!t code, thanks:()
|
||||
8. Also, the script need change resouse path, too. The defult res path is `F:/res/` ; generate path is `F:/img/`
|
||||
9. Run `nb run` in the SaltBot folder.
|
||||
|
||||
@@ -36,7 +36,7 @@ A QQbot Based on Nonebot.
|
||||
4. 下载用于生成maicard的[资源文件](https://alist.error063.work/Games/res.zip)并将此文件目录填入至第8步的资源路径。*资源文件及脚本代码来源[Error063](https://github.com/Error063/maicard?tab=readme-ov-file)
|
||||
5. 在别的地方创建一个新的nonebot项目,并将 .venv/pyvenv.cfg 复制到你的Bot目录下并覆盖。
|
||||
6. 按照.env.prod中的提示更改配置。
|
||||
7. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/\_\_init\_\_.py下的第 87, 93, 201, 204, 205行的脚本路径。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯)
|
||||
7. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/\_\_init\_\_.py下的第 87, 93, 201, 204, 205行的脚本路径(generated_img.py)。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯)
|
||||
8. 你还需要更改脚本*generate_img.py*的资源路径,默认资源路径为 `F:/res/` 生成路径为 `F:/img/` 。
|
||||
9. 在Bot运行目录下运行 `nb run` 指令以启动。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user