lgc-nb2dev / nonebot-plugin-ottohzys Goto Github PK
View Code? Open in Web Editor NEWotto 活字印刷,今天来点大家想看的东西
otto 活字印刷,今天来点大家想看的东西
已尝试更新插件和重启bot仍报错,看不懂是插件问题还是onebot的问题
03-11 13:23:22 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_ottohzys.__main__, lineno=64)
03-11 13:23:22 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_ottohzys.__main__, lineno=64) running complete
03-11 13:23:22 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_ottohzys.__main__, lineno=64) failed.
Traceback (most recent call last):
File "C:\Bot\LittlePaimon\bot.py", line 37, in <module>
nonebot.run(app="__mp_main__:app", access_log=False)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\__init__.py", line 334, in run
get_driver().run(*args, **kwargs)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\uvicorn\server.py", line 62, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1890, in _run_once
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
> File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\message.py", line 428, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 842, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 817, in simple_run
await handler(
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 106, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot_plugin_ottohzys\__main__.py", line 103, in _
await UniMessage.voice(raw=voice).send()
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot_plugin_alconna\uniseg\message.py", line 913, in send
res = await fn.send_to(target, bot, msg)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot_plugin_alconna\uniseg\adapters\onebot11\exporter.py", line 127, in send_to
return await bot.send_msg(message_type="group", group_id=int(target.id), message=message)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\internal\adapter\bot.py", line 122, in call_api
raise exception
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\internal\adapter\bot.py", line 97, in call_api
result = await self.adapter._call_api(self, api, **data)
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 144, in _call_api
return handle_api_result(await self._result_store.fetch(seq, timeout))
File "C:\Bot\LittlePaimon\.venv\lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(data=None, echo='4', message='empty message', msg='SEND_MSG_API_ERROR', retcode=100, status='failed', wording='empty message')
读取原声大碟会报错
soundfile.LibsndfileError: Error opening <_io.BytesIO object at 0x7fd473fd7590>: File contains data in an unknown format.
转后缀为.wav且固定后缀为.wav后恢复正常
☑我确定别的插件可以正常工作。
☑pyproject.toml中添加了该插件并重启运行也无反应。
控制台没有返回相关日志
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.