mirror of
https://github.com/N1ngYu/SaltBot.git
synced 2025-09-28 08:42:40 +08:00
1.6 KiB
1.6 KiB
SaltBot
A QQbot Based on Nonebot.
How to Use
Caution
This guide assumes you have basic programming & networking knowledge. This bot will need change some code to run correctly.
- Install Python3.12
- Install Nonebot
- Download this repo.
- 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.)
- Run
nb runin the SaltBot folder.
Note
This bot will use MySQL to storge your & others Userid & Token. Make sure your have a MySQL database on your device. You can change IP(/nonebot_plugin_maimai_helper/util/utils.py) if your database isn't on your local device.
如何使用SaltBot
Caution
这篇指南默认你拥有基础计算机知识。 此 Bot 将需要更改一些代码以正确运行。
- 安装 Python3.12
- 安装 Nonebot
- 下载此仓库到你的本地设备。
- 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/init.py下的第 87, 93, 201, 204, 205行的脚本路径。(不要在意我的狗史代码,谢谢你¯_(ツ)_/¯)
- 在Bot运行目录下运行
nb run指令以启动。
Note
此Bot依赖于MySQL数据库以存储你和别人的userid和token。 请确保你在本地部署并启动了一个MySQL数据库。 如果你的数据库不在本地部署,你可以在(/nonebot_plugin_maimai_helper/util/utils.py)更改数据库IP。