Closed dontdot closed 1 year ago
因为是惯用的是微信端,所以找到了基于onebot12的ComWeChatBotClient,出现了这个问题,能接收消息并给到mystool处理,但是没给出回复。是要用回go-cqhttp才行吗
06-25 18:19:46 [SUCCESS] nonebot | OneBot V12 wxid_********** | [message.private]: Message 8987842815370474717 from www******* '/帮助' 06-25 18:19:46 [DEBUG] nonebot | Checking for matchers in priority 1... 06-25 18:19:46 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.help) 06-25 18:19:46 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.help) 06-25 18:19:46 [TRACE] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help) run with incoming args: \bot=Bot(type='OneBot V12', self_id='wxid_********'), event=PrivateMessageEvent(id='8929d167-2083-4dfa-9f62- \ec7deb930435', time=datetime.datetime(2023, 6, 25, 10, 19, 46, tzinfo=datetime.timezone.utc), type='message', \detail_type='private', sub_type='', self=BotSelf(platform='wechat', user_id='wxid_********'), \message_id='8987842815370474717', message=[MessageSegment(type='text', data={'text': '/帮助'})], original_message= \[MessageSegment(type='text', data={'text': '/帮助'})], alt_message='/帮助', user_id='*********', reply=None, \to_me=True), state={'_prefix': {'command': ('帮助',), 'raw_command': '/帮助', 'command_arg': [], 'command_start': '/', \'command_whitespace': None}} 06-25 18:19:46 [DEBUG] nonebot | Running handler Dependent(call=_) 06-25 18:19:46 [TRACE] nonebot | Dependent(call=_) skipped due to TypeMisMatch(param=_, type=MessageEvent, \value=PrivateMessageEvent(id='8929d167-2083-4dfa-9f62-ec7deb930435', time=datetime.datetime(2023, 6, 25, 10, 19, 46, \tzinfo=datetime.timezone.utc), type='message', detail_type='private', sub_type='', self=BotSelf(platform='wechat', \user_id='wxid_********'), message_id='8987842815370474717', message=[MessageSegment(type='text', data={'text': '/帮助'})], \original_message=[MessageSegment(type='text', data={'text': '/帮助'})], alt_message='/帮助', user_id='www*********', \reply=None, to_me=True)> 06-25 18:19:46 [DEBUG] nonebot | Handler Dependent(call=_) skipped 06-25 18:19:46 [DEBUG] nonebot | Running handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) 06-25 18:19:46 [TRACE] nonebot | Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped due to \TypeMisMatch(param=_, type=MessageEvent, value=PrivateMessageEvent(id='8929d167-2083-4dfa-9f62-ec7deb930435', \time=datetime.datetime(2023, 6, 25, 10, 19, 46, tzinfo=datetime.timezone.utc), type='message', detail_type='private', \sub_type='', self=BotSelf(platform='wechat', user_id='wxid_********'), message_id='8987842815370474717', message= \[MessageSegment(type='text', data={'text': '/帮助'})], original_message=[MessageSegment(type='text', data={'text': '/帮助'})], \alt_message='/帮助', user_id='www*********', reply=None, to_me=True)> 06-25 18:19:46 [DEBUG] nonebot | Handler Dependent(call=_, parameterless=(Depends(Dependent(call=_key_getter)),)) skipped 06-25 18:19:46 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.help) running complete 06-25 18:19:46 [DEBUG] nonebot | Stop event propagation 06-25 18:19:46 [DEBUG] nonebot | Checking for matchers completed
目前只做了onebot v11协议的支持,也就是目前只能是作为QQ机器人
之后可能会支持v12
好的谢谢你,期待
因为是惯用的是微信端,所以找到了基于onebot12的ComWeChatBotClient,出现了这个问题,能接收消息并给到mystool处理,但是没给出回复。是要用回go-cqhttp才行吗