ValueError: Event has no message! #205
Unanswered
wangyijin209
asked this question in
问答
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在使用mirai2-api时,插件已加载
09-04 15:03:37 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_analysis_bilibili"
09-04 15:03:37 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_epicfree"
09-04 15:03:37 [SUCCESS] nonebot | Running NoneBot...
但是调用时出错
ValueError: Event has no message!
09-04 15:04:05 [ERROR] nonebot | Rule check failed for <Matcher from nonebot_plugin_analysis_bilibili, type=message, priority=1, temp=False>.
Traceback (most recent call last):
`09-04 15:03:48 [SUCCESS] nonebot | MIRAI V2 2889746718 | [FriendInputStatusChangedEvent]: {'self_id': 2889746718, 'type': 'FriendInputStatusChangedEvent', 'friend': {'id': 780104634, 'nickname': 'Arch!!!', 'remark': 'Arch!!!'}, 'inputting': True}
09-04 15:03:48 [WARNING] nonebot | Error while parsing command for event
Traceback (most recent call last):
File "/usr/local/bin/nb", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/nb_cli/commands/main.py", line 30, in run
run_bot(file, app)
File "/usr/local/lib/python3.9/site-packages/nb_cli/handlers/deploy.py", line 25, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "/usr/local/lib/python3.9/site-packages/nonebot/init.py", line 261, in run
get_driver().run(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 170, in run
uvicorn.run(
File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 576, in run
server.run()
File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/mirai2/utils.py", line 71, in process_event
await handle_event(bot, event)
Beta Was this translation helpful? Give feedback.
All reactions