Closed PluviophileD closed 2 years ago
可查看 FAQ 的 Adapter Down 小节
1.mcl启动成功 2.mah启动成功,版本2.6 3.mah和config应该是正确了,端口一致,这个issue不知道为什么图传不上来,我等等发文本 4.无论有没有在mcl登陆qq它好像都是这个反应 5.没有发现有关edit the key的信息,只开了一个mcl
非常感谢
16:02:15 [INFO] Verifying "net.mamoe:mirai-console" v2.12.1 16:02:15 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.12.1 16:02:15 [INFO] Verifying "net.mamoe:mirai-core-all" v2.12.1 16:02:15 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2 2022-08-09 16:02:17 I/main: Starting mirai-console... 2022-08-09 16:02:17 I/main: Backend: version 2.12.1, built on 2022-07-31 17:49:2 7. 2022-08-09 16:02:17 I/main: Frontend Terminal: version 2.12.1, provided by Mamoe Technologies 2022-08-09 16:02:17 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-08-09 16:02:17 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.Static LoggerBinder". 2022-08-09 16:02:17 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger imp lementation 2022-08-09 16:02:17 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticL oggerBinder for further details. 2022-08-09 16:02:17 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-htt p v2.6.0 2022-08-09 16:02:17 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-08-09 16:02:17 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-08-09 16:02:18 I/Mirai HTTP API: **
2022-08-09 16:02:18 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.Static LoggerBinder". 2022-08-09 16:02:18 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger imp lementation 2022-08-09 16:02:18 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticL oggerBinder for further details. 2022-08-09 16:02:18 I/http adapter: >>> [http adapter] is listening at http://lo calhost:8080 2022-08-09 16:02:18 I/ws adapter: >>> [ws adapter] is listening at ws://localhos t:8080 2022-08-09 16:02:18 I/Mirai HTTP API: Http api server is running with verifyKey: ServiceVerifyKey 2022-08-09 16:02:18 I/Mirai HTTP API: adaptors: [http,ws] 2022-08-09 16:02:18 I/Mirai HTTP API: **
2022-08-09 16:02:18 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418 2022-08-09 16:02:18 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已 禁用 2022-08-09 16:02:18 I/main: 2 plugin(s) enabled. 2022-08-09 16:02:18 I/main: mirai-console started successfully.
重新粘贴 mirai-api-http
配置,log显示目前端口为8080
已经重新粘贴,端口修改为23456,config里面mirai host修改至一致,但是没有变化QAQ 另外有关提示是proxy配置错误,但是我并没有开代理,也没有修改config的proxy选项
代理配置错误不用管,mcl重启过吗,配置是否是从文档复制的 配置mah
已经重启过mcl,mah配置是直接从教程点复制按钮配置的,请看附图
啊哦图片好像发不出来 不好意思哈
bot_qq: 2107163264 host_qq: 2782326767 mirai_host: http://localhost:23456 verify_key: !!str 1234567890 db_link: sqlite+aiosqlite:///data.db web_manager_api: true web_manager_auto_boot: true proxy: proxy
image_path: setu: setu setu18: setu18 real: real real_highq: real_highq bizhi: bizhi sketch: sketch
commands: default: prefix: [] alias: []
functions: tencent: secret_id: secret_id secret_key: secret_key saucenao_api_key: saucenao_api_key wolfram_alpha_key: wolfram_alpha_key shadiao_app_name: shadiao_app_name github: username: username token: token pica: username: username password: password download_cache: true search_cache: true daily_download_limit: 1 daily_search_limit: 1 daily_random_limit: 1 daily_rank_limit: 1 compress_password: i_luv_sagiri bilibili: cookie: cookie
log_related: error_retention: 14 common_retention: 7
data_related: lolicon_image_cache: true lolicon_data_cache: true network_data_cache: true automatic_update: false data_retention: true
database_related: mysql: disable_pooling: false pool_size: 40 max_overflow: 60
adapters:
ws debug: false enableVerify: true verifyKey: 1234567890 # 你可以自己设定, 这里作为示范, 请保持和 config.yaml 中 verify_key 项一致 singleMode: false cacheSize: 4096 # 可选, 缓存大小, 默认4096. 缓存过小会导致引用回复与撤回消息失败 adapterSettings:
http: host: localhost port: 23456 # 端口 cors: [*]
ws: host: localhost port: 23456 # 端口 reservedSyncId: -1 # 确保为 -1, 否则 WebsocketAdapter(Experimental) 没法正常工作.
建议使用文件上传或 pastebin
不好意思哈,以下是我的mcl配置和config,请看看是否有问题 https://pastebin.com/XxtC39hE https://pastebin.com/LpqDSqGq 由于pastebin的审核问题我把中文注释删了 非常感谢
尝试 mirai_host: http://localhost:23456
更改为 mirai_host: http://127.0.0.1:23456
机器人已经能正常启动,谢谢大佬帮助 另外请问机器人只能响应群事件,不能响应其他命令和设置是什么原因?请问这些是需要先手动调过的吗?(我看教程看的有点一知半解)
查看以下几点
查看以下几点
后台可以接收消息,但是对机器人的任何命令,包括功能开关的指令它都没有反应(后台能收到)。实际上部分群事件他也不能响应,比如显示撤回消息的id之类的
检查账号是否被风险控制
账号确实被风控,但是解除风控后并没有变化
log有没有
问题 首次启动机器人后报错,我是编程小白,请问这个是不是因为我的网络问题?我没有启用代理。麻烦大佬们了,十分感谢。
如何复现
预期行为
使用环境:
日志/截图 将任何有关的日志/截图放到这里(控制台输出/MAH 输出/...) 2022-08-09 15:43:58.988 | ERROR | sagiri_bot.handler.handlers.genshin_gacha.p ool_data:up_armicon:197 - 更新 风鹰剑 武器图标失败,错误为 没有找到武器 风鹰剑 的 ID,建议稍后使用 更新原神卡池 指令重新更新 2022-08-09 15:44:01.577 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:01.593 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:01.600 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:06.592 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:07.626 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:07.631 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:12.626 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:12.632 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:12.635 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:17.631 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:18.646 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:18.653 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:23.653 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:23.671 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:23.676 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:28.687 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:29.704 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:30.671 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:35.674 | WARNING | graia.ariadne.connection.ws::84 - Websocke t reconnecting... 2022-08-09 15:44:37.542 | INFO | graia.ariadne.connection.ws::91 - Websocke t connection closed 2022-08-09 15:44:37.551 | WARNING | graia.ariadne.connection.ws::82 - Websocke t reconnecting in 5s... 2022-08-09 15:44:42.541 | WARNING | graia.ariadne.connection.ws:_:84 - Websocke t reconnecting...