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
README.md
14
README.md
@@ -11,9 +11,10 @@ A QQbot Based on Nonebot.
|
||||
1. Install [Python3.12](https://www.python.org/downloads/release/python-3129/)
|
||||
2. Install [Nonebot](https://nonebot.dev/docs/quick-start)
|
||||
3. Download this repo.
|
||||
4. 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.)
|
||||
5. Also, the script need change resouse path, too. The defult res path is `F:/res/` ; generate path is `F:/img/`
|
||||
6. Run `nb run` in the SaltBot folder.
|
||||
4. Create a nonebot project at another place and copy .venv/pyvenv.cfg to the bot folder.
|
||||
5. 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.)
|
||||
6. Also, the script need change resouse path, too. The defult res path is `F:/res/` ; generate path is `F:/img/`
|
||||
7. Run `nb run` in the SaltBot folder.
|
||||
|
||||
> [!NOTE]
|
||||
> This bot will use MySQL to storge your & others Userid & Token.
|
||||
@@ -30,9 +31,10 @@ A QQbot Based on Nonebot.
|
||||
1. 安装 [Python3.12](https://www.python.org/downloads/release/python-3129/)
|
||||
2. 安装 [Nonebot](https://nonebot.dev/docs/quick-start)
|
||||
3. 下载此仓库到你的本地设备。
|
||||
4. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/__init__.py下的第 87, 93, 201, 204, 205行的脚本路径。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯)
|
||||
5. 你还需要更改脚本的资源路径,默认资源为 `F:/res/` 生成为 `F:/img/` 。
|
||||
6. 在Bot运行目录下运行 `nb run` 指令以启动。
|
||||
4. 在别的地方创建一个新的nonebot项目,并将 .venv/pyvenv.cfg 复制到你的Bot目录下并覆盖。
|
||||
5. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/__init__.py下的第 87, 93, 201, 204, 205行的脚本路径。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯)
|
||||
6. 你还需要更改脚本的资源路径,默认资源为 `F:/res/` 生成为 `F:/img/` 。
|
||||
7. 在Bot运行目录下运行 `nb run` 指令以启动。
|
||||
|
||||
> [!NOTE]
|
||||
> 此Bot依赖于MySQL数据库以存储你和别人的*userid*和*token*。
|
||||
|
||||
Reference in New Issue
Block a user