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
假如 nb2 中没有设置匹配所有命令,on_startswith 钩子还是能匹配所有消息,相反 on_command 钩子就必须先匹配上 nb 的前缀之后再匹配全命令。
hoshino 中的 on_prefix 和 on_fullcommand 就完全不管 nb1 的命令前缀,任何消息都能匹配。
The text was updated successfully, but these errors were encountered:
nb2的设置应该有说要加command start,所以我这边说明就没写
Sorry, something went wrong.
是的,我遇到的情况是 on_startswith 不管是否匹配 COMMAND_START 内的命令前缀
这个不知道是 nb2 的设计问题还是 bug,如果就是这么设计的可能需要在这个插件内进行适配。。
应该就是这么设计的,commandstart就只对on_command 生效,实际上你设置command start为空字符串 也可以欺骗自己(
No branches or pull requests
假如 nb2 中没有设置匹配所有命令,on_startswith 钩子还是能匹配所有消息,相反 on_command 钩子就必须先匹配上 nb 的前缀之后再匹配全命令。
hoshino 中的 on_prefix 和 on_fullcommand 就完全不管 nb1 的命令前缀,任何消息都能匹配。
The text was updated successfully, but these errors were encountered: