We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
描述问题:
在使用on_keyword时,不正确的消息触发了关键词处理函数。
如何复现?
定义
studentunion = on_keyword("学生会哪个部门比较好玩") @studentunion.handle() async def studentunion_handle(event:Event, bot:Bot): await bot.send(event, Message(f"哪个部门都很好玩啦!"))
当获得”好玩“,”不好玩“或者一些其他消息时,该handle函数也会触发
期望的结果 仅仅在收到”学生会哪个部门比较好玩“时触发
环境信息:
协议端信息:
截图或日志
The text was updated successfully, but these errors were encountered:
请正确使用 on_keyword https://v2.nonebot.dev/docs/api/plugin/on#on_keyword
on_keyword
on_keyword({"key1", "key2"})
Sorry, something went wrong.
Fix syntax errors in the readme
609a911
I can't use it, I found the answer from nonebot#1152
No branches or pull requests
描述问题:
在使用on_keyword时,不正确的消息触发了关键词处理函数。
如何复现?
定义
当获得”好玩“,”不好玩“或者一些其他消息时,该handle函数也会触发
期望的结果
仅仅在收到”学生会哪个部门比较好玩“时触发
环境信息:
协议端信息:
截图或日志
The text was updated successfully, but these errors were encountered: