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:
10
README.md
10
README.md
@@ -14,9 +14,10 @@ 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)
|
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.
|
5. Create a nonebot project at another place and copy .venv/pyvenv.cfg to the bot folder.
|
||||||
6. Change the configuration on .env.prod.
|
6. Change the configuration on .env.prod.
|
||||||
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:()
|
7. Change the script(generate_img.py) and picture path(Step 8 generate path) on /.venv/Lib/site-packages/nonebot_plugin_maimai_helper/\_\_init\_\_.py, line 197, 200, and line 201. (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/`
|
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.
|
9. Change the picture cache path on /nonebot_plugin_maimai_helper/\_\_init\_\_.py, line 83 and 89. Just same as Step 8's generate path.
|
||||||
|
10. Run `nb run` in the SaltBot folder.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> This bot will use MySQL to storge your & others Userid & Token.
|
> This bot will use MySQL to storge your & others Userid & Token.
|
||||||
@@ -36,9 +37,10 @@ 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)
|
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目录下并覆盖。
|
5. 在别的地方创建一个新的nonebot项目,并将 .venv/pyvenv.cfg 复制到你的Bot目录下并覆盖。
|
||||||
6. 按照.env.prod中的提示更改配置。
|
6. 按照.env.prod中的提示更改配置。
|
||||||
7. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/\_\_init\_\_.py下的第 87, 93, 201, 204, 205行的脚本路径(generated_img.py)。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯)
|
7. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/\_\_init\_\_.py下的第 197, 200, 201行的脚本(generated_img.py)和图片路径(第8步的生成路径)。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯)
|
||||||
8. 你还需要更改脚本*generate_img.py*的资源路径,默认资源路径为 `F:/res/` 生成路径为 `F:/img/` 。
|
8. 你还需要更改脚本*generate_img.py*的资源路径,默认资源路径为 `F:/res/` 生成路径为 `F:/img/` 。
|
||||||
9. 在Bot运行目录下运行 `nb run` 指令以启动。
|
9. 更改/nonebot_plugin_maimai_helper/\_\_init\_\_.py下的第83和89行的图片缓存路径,与第八步相同即可。
|
||||||
|
10. 在Bot运行目录下运行 `nb run` 指令以启动。
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> 此Bot依赖于MySQL数据库以存储你和别人的*userid*和*token*。
|
> 此Bot依赖于MySQL数据库以存储你和别人的*userid*和*token*。
|
||||||
|
|||||||
Reference in New Issue
Block a user