Rene8028 / nonebot_plugin_jrrp2

带数据库可查询历史平均人品的jrrp
MIT License
4 stars 1 forks source link

官方机器人没有回复 #2

Open gaodeng520 opened 3 months ago

gaodeng520 commented 3 months ago

我发送/jrrp的反馈 07-12 14:40:44 [SUCCESS] nonebot | QQ 102142197 | [EventType.GROUP_AT_MESSAGE_CREATE]: Message ROBOT1.0FNzXnnbU2jcsKJzPbOXR6D9gaYI2FJlrdL-MUTstx3lQC15oaZi1Fsijp6Yfcz-g1F yf2-W350f.qJZEK-GgVMtG81ovPjw88HwjHppK6Gc! from 9D2EE7AA9283D972BC09B8DF711B7208@[Group:B88099C3B8BFD6E84CACE8B5AD7F8E25]: [Text(type='text', data={'text': '/jrrp'})] 07-12 14:40:44 [DEBUG] nonebot | Running PreProcessors... 07-12 14:40:44 [DEBUG] nonebot | QQ | Bot 102142197 calling API me 07-12 14:40:47 [WARNING] apscheduler | Run time of job " (trigger: interval[0:00:02], next run at: 2024-07-12 14:40:48 CST)" was missed by 0:00:01.063414 07-12 14:40:47 [DEBUG] nonebot | Running CalledAPI hooks... 07-12 14:40:47 [DEBUG] nonebot | Checking for matchers in priority 1... 07-12 14:40:48 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_jrrp2, lineno=94) 07-12 14:40:48 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_jrrp2, lineno=94) 07-12 14:40:48 [DEBUG] nonebot | Running handler Dependent(call=jrrp_handle) 07-12 14:40:48 [DEBUG] nonebot | Handler Dependent(call=jrrp_handle) skipped 07-12 14:40:48 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_jrrp2, lineno=94) running complete 07-12 14:40:48 [DEBUG] nonebot | Checking for matchers completed

Rene8028 commented 3 months ago

请提供发送的原始信息内容,你的环境,版本号,更多的日志信息。 据目前log来看“Handler Dependent(call=jrrp_handle) skipped”表明bot匹配了指令,但是Handler被跳过了。 需要进一步分析根据目前的日志片段不能分析具体原因

Rene8028 commented 3 months ago

@gaodeng520

gaodeng520 commented 3 months ago

原始信息:@bot /jrrp 环境:Windowsserver2016 python3.12 64 bit 原始日志: 07-12 15:37:52 [DEBUG] nonebot | Succeeded to load adapter "QQ" 07-12 15:37:53 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo" 07-12 15:37:53 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_apscheduler" 07-12 15:37:54 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_alconna:uniseg" from "nonebot_plugin_alconna.uniseg" 07-12 15:37:55 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_alconna" 07-12 15:37:56 [DEBUG] nonebot | OneBot V12 | Model for key "" <class 'nonebot.adapters.onebot.v12.event.BotEvent'> is overridden by <class 'nonebot.adapters.onebot.v12.e vent.Event'> 07-12 15:37:56 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_userinfo" 07-12 15:37:56 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_htmlrender" 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector bots 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector cpu_brand 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector cpu_count_logical 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector cpu_count 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector cpu_percent 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector cpu_freq 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector disk_usage 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector disk_io 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector memory_stat 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector swap_stat 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector nonebot_run_time 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector system_run_time 07-12 15:37:57 [DEBUG] nonebot_plugin_picstatus | Registered collector nonebot_version 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector ps_version 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector time 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector python_version 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector system_name 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector network_io 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector network_connection 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered collector process_status 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered global jinja filter format_cpu_freq 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered global jinja filter percent_to_color 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered global jinja filter auto_convert_unit 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Registered global jinja filter br 07-12 15:37:58 [DEBUG] nonebot_plugin_picstatus | Loaded template default TemplateInfo(collectors={'cpu_percent', 'system_run_time', 'process_status', 'networkio', 'cpu brand', 'nonebot_run_time', 'cpu_count_logical', 'disk_usage', 'swap_stat', 'network_connection', 'disk_io', 'system_name', 'nonebot_version', 'ps_version', 'memory_stat' , 'cpu_freq', 'time', 'cpu_count', 'bots', 'python_version'}, config=TemplateConfig(ps_default_components=['header', 'cpu_mem', 'disk', 'network', 'process', 'footer'], p s_default_additional_css=[], ps_default_additional_script=[]), renderer=<function render at 0x000001E3D52C4EA0>) 07-12 15:37:58 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_picstatus" 07-12 15:37:58 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_jrrp2" 07-12 15:37:58 [SUCCESS] nonebot | Running NoneBot... 07-12 15:37:58 [DEBUG] nonebot | Loaded adapters: QQ 07-12 15:37:58 [INFO] nonebot_plugin_apscheduler | Scheduler Started 07-12 15:38:00 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 07-12 15:38:01 [INFO] nonebot_plugin_htmlrender | Browser Started. 07-12 15:38:06 [DEBUG] nonebot | QQ | QQ run in sandbox mode: True 07-12 15:38:06 [DEBUG] nonebot | QQ | QQ api base url: https://sandbox.api.sgroup.qq.com 07-12 15:38:06 [INFO] nonebot | Application startup completed. 07-12 15:38:06 [DEBUG] nonebot | QQ | Bot 102142197 calling API shard_urlget 07-12 15:38:10 [WARNING] apscheduler | Run time of job " (trigger: interval[0:00:02], next run at: 2024-07-12 15:38:07 CST)" was missed by 0:00:05.556961 07-12 15:38:10 [WARNING] apscheduler | Run time of job " (trigger: interval[0:00:02], next run at: 2024-07-12 15:38:11 CST)" was missed by 0:00:01.566509 07-12 15:38:14 [WARNING] apscheduler | Run time of job " (trigger: interval[0:00:02], next run at: 2024-07-12 15:38:15 CST)" was missed by 0:00:01.696182 07-12 15:38:14 [DEBUG] nonebot | Running CalledAPI hooks... 07-12 15:38:15 [DEBUG] nonebot | QQ | WebSocket Connection to wss://sandbox.api.sgroup.qq.com/websocket established 07-12 15:38:15 [INFO] nonebot | QQ | Bot 102142197 connected 07-12 15:38:15 [SUCCESS] nonebot | QQ 102142197 | [EventType.READY]: {'version': 1, 'session_id': '5642503c-759b-4662-8ea5-4228372d6f60', 'user': {'id': '1365835881296505 1660', 'username': '龙龙-测试中', 'avatar': None, 'bot': True, 'union_openid': None, 'union_user_account': None}, 'shard': (0, 1)} 07-12 15:38:15 [DEBUG] nonebot | Running PreProcessors... 07-12 15:38:15 [DEBUG] nonebot_plugin_picstatus | Event has no context! 07-12 15:38:15 [DEBUG] nonebot | Checking for matchers in priority 1... 07-12 15:38:16 [DEBUG] nonebot | Checking for matchers completed 07-12 15:38:22 [SUCCESS] nonebot | QQ 102142197 | [EventType.GROUP_AT_MESSAGE_CREATE]: Message ROBOT1.0_FNzXnnbU2jcsKJzPbOXR6JSnFSYm08mpOtCp64TGv.9xHXcskXZpZW5QKGavB1N6QW 4Zy6yE2xGePnLYrGPUHA!! from 9D2EE7AA9283D972BC09B8DF711B7208@[Group:B88099C3B8BFD6E84CACE8B5AD7F8E25]: [Text(type='text', data={'text': '/jrrp'})] 07-12 15:38:22 [DEBUG] nonebot | Running PreProcessors... 07-12 15:38:22 [DEBUG] nonebot | QQ | Bot 102142197 calling API me 07-12 15:38:25 [DEBUG] nonebot | Running CalledAPI hooks... 07-12 15:38:25 [DEBUG] nonebot | Checking for matchers in priority 1... 07-12 15:38:25 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_jrrp2, lineno=94) 07-12 15:38:25 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_jrrp2, lineno=94) 07-12 15:38:25 [DEBUG] nonebot | Running handler Dependent(call=jrrp_handle) 07-12 15:38:25 [DEBUG] nonebot | Handler Dependent(call=jrrp_handle) skipped 07-12 15:38:25 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_jrrp2, lineno=94) running complete 07-12 15:38:26 [DEBUG] nonebot | Checking for matchers completed

gaodeng520 commented 3 months ago

.env.prod部分内容:COMMAND_START=["/"] # 配置命令起始字符 COMMAND_SEP=["."] # 配置命令分割字符 LOG_LEVEL=DEBUG QQ_IS_SANDBOX=true

QQ_BOTS=' [ { "id": "97", "token": "L0e50UY5", "secret": "MUclu3CLUd", "intent": { "guilds": true, "guild_members": true, "guild_messages": false, "guild_message_reactions": true, "direct_message": false, "open_forum_event": false, "audio_live_member": false, "c2c_group_at_messages": true, "interaction": false, "message_audit": true, "forum_event": false, "audio_action": false, "at_messages": true } } ] '

Rene8028 commented 3 months ago

emm,在同样环境中可以多次复现吗?

Rene8028 commented 3 months ago

或者可以尝试重新启动nb脚手架,看看是否还能复现,因为在日志上确实看不出来问题。

gaodeng520 commented 3 months ago

在同一环境多次存在

gaodeng520 commented 3 months ago

我先尝试重启一下服务器,因为我自安装python,nb以来没有重启过