Traceback (most recent call last):
File "/root/bot/lolbot/lolbot/./src/plugins/nonebot_pluginadmin/requests.py", line 170, in gr
await bot.send_msg(user_id=int(q), message=f"同意{uid}加入群 {gid},验证消息为 “{word}”")
File "/root/training/Python-3.9.10/lib/python3.9/site-packages/nonebot/internal/adapter/bot.py", line 107, in call_api
await asyncio.gather(*coros)
File "/root/training/Python-3.9.10/lib/python3.9/site-packages/nonebot_plugin_chatrecorder/init.py", line 96, in record_send_msg_v11
or (api == "send_msg" and data["message_type"] == "group")
KeyError: 'message_type'
描述 bug 例如我设置词条为"朋友",如果验证信息是"朋友"就能自动审批,如果是"是朋友推荐"则不会自动审批
如何复现 设置词条,开启审批,有人加群
报错截图 (python的报错请截最下面) 如果验证消息是"朋友"
报错,但是能自动审批
Traceback (most recent call last): File "/root/bot/lolbot/lolbot/./src/plugins/nonebot_pluginadmin/requests.py", line 170, in gr await bot.send_msg(user_id=int(q), message=f"同意{uid}加入群 {gid},验证消息为 “{word}”")
如果验证消息是带"朋友"的其他字符串,日志为
05-01 20:25:05 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_naturel_gpt.matcher) running complete 05-01 20:25:08 [SUCCESS] nonebot | OneBot V11 22222 | [request.group.add]: {'time': 1682943908, 'self_id': 22222, 'post_type': 'request', 'request_type': 'group', 'sub_type': 'add', 'group_id': 33333, 'user_id': 11111, 'comment': '问题:你好\n答案:朋友推荐', 'flag': '1682943907957328', 'invitor_id': 0}
环境
其他内容 略