Closed eigeen closed 1 year ago
12-26 11:14:31 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_bilibilibot) failed.
Traceback (most recent call last):
File "/Virtual/Botenv/bin/nb", line 8, in
File "/Virtual/Botenv/lib/python3.10/site-packages/nonebot/message.py", line 188, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "/Virtual/Botenv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 727, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "/Virtual/Botenv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 702, in simple_run await handler( File "/Virtual/Botenv/lib/python3.10/site-packages/nonebot/dependencies/init.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "/Virtual/Botenv/lib/python3.10/site-packages/nonebot_plugin_bilibilibot/init.py", line 349, in sendHelpMsg with open(f'{PackagePath}/file/source/help.json', 'r', encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: '/Virtual/Botenv/lib/python3.10/site-packages/nonebot_plugin_bilibilibot/bili_src/file/source/help.json'
出现了同样的问题
准备提交修复版本
新版本2.3.1已解决该问题
发现一个问题,使用/help会读取plugins\nonebot_plugin_bilibilibot\bili_src\file\source\help.json内容(file\source在bili_src内部),而在您的仓库中,这个file\source目录和bili_src在同级目录下,是否提交时目录组织出现了问题?
引用自https://github.com/TDK1969/nonebot_plugin_bilibilibot/issues/32 ,单独开了一个issue