Ljzd-PRO / nonebot-plugin-mystool

QQ聊天、频道机器人插件 | 米游社工具-每日米游币任务、游戏签到、商品兑换、免抓包登录、原神崩铁便笺提醒
https://pypi.org/project/nonebot-plugin-mystool
MIT License
412 stars 51 forks source link

是onebot适配器版本问题导致的吗 #125

Closed dontdot closed 1 year ago

dontdot commented 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
Ljzd-PRO commented 1 year ago

目前只做了onebot v11协议的支持,也就是目前只能是作为QQ机器人

Ljzd-PRO commented 1 year ago

之后可能会支持v12

dontdot commented 1 year ago

之后可能会支持v12

好的谢谢你,期待