删除xyit平台,修复代码在ncatbot 4.x时报错的bug #1

This commit is contained in:
2025-11-03 06:33:37 +08:00
parent 2ea4ed9acd
commit cf07a52200
10 changed files with 90 additions and 155 deletions

View File

@@ -1,18 +1,25 @@
#napcat配置
# ncatbot 配置
# 此处仅提供ncatbot部分配置项其余配置项请在ncatbot.yaml中修改
# 此处配置优先级高于ncatbot.yaml
# 请务必保证bot_qq及root_qq配置正确
# 在ws监听IP为0.0.0.0时要求ws_token为强密码启用web_uienable_webui_interaction = True检查时要求webui_token为强密码
# 强密码要求: 1至少 12 位字符 2包含数字、字母和特殊符号特殊符号包括!@#$%^&*()_+-=[]{}|;:,.<>?
bot_qq = 123456 #机器人q号
root_qq = 1234567 # 管理员q号
ws_uri = "loacalhost:3001" # ws 地址, 可自定义端口, 默认 3001
webui_uri = "loacalhost:6099" # webui 地址, 可自定义端口, 默认 6099
ws_uri = "localhost:3001" # ws 地址, 可自定义端口, 默认 3001
webui_uri = "localhost:6099" # webui 地址, 可自定义端口, 默认 6099
webui_token = "napcat" # webui 令牌, 默认 napcat
ws_token = "" # ws_uri 令牌, 默认留空
ws_listen_ip = "localhost" # ws_uri 监听 ip, 默认 localhost 监听本机,监听全部则配置 0.0.0.0
remote_mode = false # 是否远程模式, 即 NapCat 服务不在本机运行 psncatbot官方已废弃该参数
enable_webui_interaction = true # 是否启用webui交互默认启用
# 功能配置
allowed_groups = "all" # 授权群聊all为全部eg[123456789, 987654321]
allowed_users = "all" # 授权用户all为全部eg[123456789, 987654321]
ai_service = "xyit" # ai平台 支持 "dify" "mcunc" "xyit" "aliyun"
friend_auto = false # 好友自动同意
ai_service = "" # ai平台 支持 "dify" "mcunc" "aliyun"
friend_auto = false # 好友自动同意,实验性功能
group_auto = true
group_welcome = false # 入群欢迎
group_leave = false # 退群提醒
@@ -22,14 +29,14 @@ group_welcome_message = "!at 欢迎加入本群,使用@bot /help获取此bot
group_leave_message = "用户{userid}退群了" # 退群消息 {userid}为退群用户id
error_message = "服务器繁忙,请稍后再逝"
permission_denied_message = "此bot未在该群启用"
status_message = "---猫娘 QBOT---\n Q bot 运行正常 \n 版本: 2.0 pre \n © 无尽创意MCUNC"
status_message = "---chatbot ncapcat---\n Q bot 运行正常 \n 版本: 2.0 pre \n © 无尽创意MCUNC"
help_message = "直接输入聊天内容即可 \n /help -- 获取帮助 \n /clear [群号 / private:Q号] (all 为全部,不填为本 群/用户) \n /status -- 查看bot状态"
command_isnone_message = "你似乎没有提供想和我聊的内容喵~ \n 直接输入聊天内容即可"
command_notfound_message = "指令不存在,输入/help查看帮助"
chatmessage_isnone_message = "你似乎没有提供想和我聊的内容喵~ \n 格式:/cat <提问内容>"
clean_all_success_message = "✅ 已清空所有群组数据"
clean_one_success_message = "✅ 已成功删除 group_id = {group_id} 的数据"
clean_one_notfound_message = "⚠️ 没有找到 group_id = {group_id} 的数据"
clean_one_success_message = "✅ 已成功删除 group_id = {group_id} 的数据" # {group_id}为群组id
clean_one_notfound_message = "⚠️ 没有找到 group_id = {group_id} 的数据" # {group_id}为群组id
clean_nopermissoin_message = "你不是管理员哦喵~"
clean_fail_message = "❌ 数据库操作失败"
@@ -51,12 +58,6 @@ mcunc_appID = "" # appID
mcunc_appKEY = "" # appKEY
mcunc_model = "maoniang" # 模型名称名称
# xyit配置 ai_service选择xyit时需配置
xyit_ip = "https://ai.openapi.xyit.net" # ip 此项一般不需用修改
xyit_appID = "" # appID
xyit_appKEY = "" # appKEY
xyit_model = "maoniang" # 模型名称
# 阿里云百炼配置 ai_service选择aliyun时需配置
aliyun_app_id = ""
aliyun_api_key = ""