Closed MapleLeaf2007 closed 1 year ago
nonebot2版本?什么adapter?
获取Outlook for Androidhttps://aka.ms/AAb9ysg
From: ye feng @.> Sent: Friday, August 11, 2023 9:06:30 AM To: XZhouQD/nonebot-plugin-help @.> Cc: Assign @.>; Subscribed @.> Subject: [XZhouQD/nonebot-plugin-help] [问题?] (Issue #10)
08-11 01:04:42 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_help.handler) failed. Traceback (most recent call last): File "", line 25, in File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/init.py", line 333, in run get_driver().run(*args, **kwargs) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 199, in run uvicorn.run( File "/root/kook/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 578, in run server.run() File "/root/kook/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/message.py", line 467, in check_and_run_matcher await _run_matcher(
File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/message.py", line 419, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 759, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 734, in simple_run await handler( File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/dependencies/init.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(values) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot_plugin_help/handler.py", line 119, in get_result await helper.finish(result, at_sender=True) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 483, in finish await cls.send(message, kwargs) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 467, in send return await bot.send(event=event, message=_message, kwargs) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/adapters/kaiheila/bot.py", line 214, in send return await self.class.send_handler(self, event, message, reply_sender, is_temp_msg, kwargs) File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/adapters/kaiheila/bot.py", line 125, in send return await bot.send_msg(**params) TypeError: Bot.send_msg() got an unexpected keyword argument 'at_sender'
― Reply to this email directly, view it on GitHubhttps://github.com/XZhouQD/nonebot-plugin-help/issues/10 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ44FUNBYICSMYCKT37OQ43XUWARNBFKMF2HI4TJMJ2XIZLTSSBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLKRTGAYDIMJZHAZTCN5ENZQW2ZNJNBQXGX3MMFRGK3ECUV3GC3DVMWSHI4TVMWSG4YLNMWXHOYLUMNUF6YLDORUXM2LUPGWHG5LCNJSWG5C7OR4XAZNFJFZXG5LFUZ2G64DJMNZZHAVEOR4XAZNKOJSXA33TNF2G64TZUV3GC3DVMWUTGNRXHA3DEOJWGWBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGE4DINRQGY3TSMRSQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKRTGAYDIMJZHAZTCN5HORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you were assigned.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
嘶,想起来了,我用阿里源直接装的,但是阿里那个不是新的(
emmmm,还是不行,我用的KOOK适配器
应该是kook adapter没有at_sender,这个看来不是所有适配器都支持,我加个配置允许去掉吧
@fengye23333 试下0.6.1版本,增加一个.env的配置help_at_sender = false
,应该可以规避掉
08-11 01:04:42 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_help.handler) failed. Traceback (most recent call last): File "", line 25, in
File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/init.py", line 333, in run
get_driver().run(*args, **kwargs)
File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 199, in run
uvicorn.run(
File "/root/kook/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 578, in run
server.run()
File "/root/kook/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/root/kook/.venv/lib/python3.10/site-packages/nonebot/message.py", line 467, in check_and_run_matcher
await _run_matcher(