Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

消息好像无法解析 #4

Open
mmxd12 opened this issue Nov 18, 2023 · 0 comments
Open

消息好像无法解析 #4

mmxd12 opened this issue Nov 18, 2023 · 0 comments

Comments

@mmxd12
Copy link

mmxd12 commented Nov 18, 2023

`11-18 11:37:33 [WARNING] nonebot | Error while parsing command for event
Traceback (most recent call last):
File "", line 17, in
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\nonebot_init_.py", line 331, in run
get_driver().run(*args, **kwargs)
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
uvicorn.run(
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "D:\PYTHON\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "D:\PYTHON\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "D:\PYTHON\Lib\asyncio\base_events.py", line 640, in run_until_complete
self.run_forever()
File "D:\PYTHON\Lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "D:\PYTHON\Lib\asyncio\base_events.py", line 607, in run_forever
self._run_once()
File "D:\PYTHON\Lib\asyncio\base_events.py", line 1922, in _run_once
handle._run()
File "D:\PYTHON\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 198, in handle_event
await handle_event(self, event)

File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\nonebot\message.py", line 524, in handle_event
TrieRule.get_value(bot, event, state)
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\nonebot\rule.py", line 104, in get_value
message = event.get_message()
File "E:\Users\Administrator\Desktop\其他\BOT\opq+nonebot\nonebot\wf.venv\Lib\site-packages\nonebot\adapters\onebot\v11\event.py", line 49, in get_message
raise ValueError("Event has no message!")
ValueError: Event has no message!`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant