diff --git a/.env.prod b/.env.prod index c7944be..aac0c20 100644 --- a/.env.prod +++ b/.env.prod @@ -1,16 +1,14 @@ DRIVER=~fastapi+~websockets+~httpx -MAIMAIDXPATH=F:\static +MAIMAIDXPATH=E:\static #更改此路径到你的本地资源存储路径 MAIMAIDXTOKEN=4jyZwOhcYEBnUe7fqLJNPQKMGDv5iIV6 HOST=0.0.0.0 # 配置 NoneBot 监听的 IP/主机名 PORT=8080 # 配置 NoneBot 监听的端口 -SUPERUSERS=["2052018959"] # 配置 NoneBot 超级用户 -NICKNAME=["Salt☆"] # 配置机器人的昵称 +SUPERUSERS=[""] # 配置 NoneBot 超级用户 +NICKNAME=[""] # 配置机器人的昵称 COMMAND_START=["/", ""] # 配置命令起始字符 COMMAND_SEP=["."] # 配置命令分割字符 -ticket=true -#aes_key="n7bx6:@Fg_:2;5E89Phy7AyIcpxEQ:R@" -#aes_iv=";;KjR1C3hgB1ovXa" -db_host=81.71.65.247:3306 +ticket=true #是否开启发票功能 +db_host= #数据库IP 更改此处几乎无用处 请自行按照README.md中的说明更改数据库IP db_user=root db_pass=root db_name=aime @@ -23,38 +21,8 @@ chime_host=http://ai.sys-allnet.cn aime_host=http://ai.sys-allnet.cn obfuscate_param="BEs2D5vW" title_host=https://maimai-gm.wahlap.com:42081/Maimai2Servlet/ -white_list=False -#NaiLongAll -#PROXY=http://127.0.0.1:11451 -#NaiLongReturn -NAILONG_BYPASS_SUPERUSER=True -NAILONG_BYPASS_ADMIN=True -NAILONG_NEED_ADMIN=False -NAILONG_LIST_SCENES=[] -NAILONG_BLACKLIST=True -NAILONG_USER_BLACKLIST=[] -NAILONG_PRIORITY=100 -#NaiLongDoing -NAILONG_RECALL=True -NAILONG_MUTE_SECONDS=0 -NAILONG_TIP={"nailong": "发奶龙的小朋友你好啊,我将风风光光你的全家喵~"} -NAILONG_FAILED_TIP={"nailong": "{:Reply($message_id)}呜,不要发奶龙了喵 🥺 👉👈"} -NAILONG_CHECK_ALL_FRAMES=False -#ModelConfig -NAILONG_MODEL_DIR=./model -NAILONG_MODEL=0 -NAILONG_AUTO_UPDATE_MODEL=True -NAILONG_CONCURRENCY=1 -NAILONG_ONNX_PROVIDERS=["CPUExecutionProvider"] -#Model 1 Config -NAILONG_MODEL1_TYPE=tiny -#NAILONG_MODEL1_YOLOX_SIZE=('640', '640') -NAILONG_MODEL1_SCORE={"nailong": 0.5} -#Another -NAILONG_GITHUB_TOKEN=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 -#title_host=http://ai.sys-all.cn/ +white_list=False #是否开启科技白名单模式 不建议开启 因为我移植本部分代码时出现问题 开启后出现的bug本人概不负责 PLUS_ONE_PRIORITY=10 - # 群聊或私聊白名单,单个或多个示例,下面任选其一,可填入群 QQ 号或个人 QQ 号 PLUS_ONE_WHITE_LIST=[""] # Custom Configs diff --git a/README.md b/README.md index 8e87edb..930350d 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,10 @@ A QQbot Based on Nonebot. 2. Install [Nonebot](https://nonebot.dev/docs/quick-start) 3. Download this repo. 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. +5. Change the configuration on .env.prod. +6. 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. Also, the script need change resouse path, too. The defult res path is `F:/res/` ; generate path is `F:/img/` +8. Run `nb run` in the SaltBot folder. > [!NOTE] > This bot will use MySQL to storge your & others Userid & Token. @@ -32,9 +33,10 @@ A QQbot Based on Nonebot. 2. 安装 [Nonebot](https://nonebot.dev/docs/quick-start) 3. 下载此仓库到你的本地设备。 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` 指令以启动。 +5. 按照.env.prod中的提示更改配置。 +6. 更改在/.venv/Lib/site-packages/nonebot_plugin_maimai_helper/__init__.py下的第 87, 93, 201, 204, 205行的脚本路径。(不要在意我的狗史代码,谢谢你¯\_(ツ)_/¯) +7. 你还需要更改脚本的资源路径,默认资源为 `F:/res/` 生成为 `F:/img/` 。 +8. 在Bot运行目录下运行 `nb run` 指令以启动。 > [!NOTE] > 此Bot依赖于MySQL数据库以存储你和别人的*userid*和*token*。 diff --git a/model/labels.txt b/model/labels.txt deleted file mode 100644 index becafaf..0000000 --- a/model/labels.txt +++ /dev/null @@ -1,8 +0,0 @@ -_background_ -nailong -anime -human -emoji -long -other -htgt \ No newline at end of file diff --git a/model/labels.txt.ver.txt b/model/labels.txt.ver.txt deleted file mode 100644 index 97a26a0..0000000 --- a/model/labels.txt.ver.txt +++ /dev/null @@ -1 +0,0 @@ -v2.6-2024-11-02_13-08-19 \ No newline at end of file diff --git a/model/nailong.pth b/model/nailong.pth deleted file mode 100644 index 0994048..0000000 Binary files a/model/nailong.pth and /dev/null differ diff --git a/model/nailong.pth.ver.txt b/model/nailong.pth.ver.txt deleted file mode 100644 index 5578917..0000000 --- a/model/nailong.pth.ver.txt +++ /dev/null @@ -1 +0,0 @@ -0994048 \ No newline at end of file diff --git a/model/nailong_tiny.onnx b/model/nailong_tiny.onnx deleted file mode 100644 index 1c1b612..0000000 Binary files a/model/nailong_tiny.onnx and /dev/null differ diff --git a/model/nailong_tiny.onnx.ver.txt b/model/nailong_tiny.onnx.ver.txt deleted file mode 100644 index 6c235b6..0000000 --- a/model/nailong_tiny.onnx.ver.txt +++ /dev/null @@ -1 +0,0 @@ -v2.6-2024-11-02_13-08-14 \ No newline at end of file