-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
增加获取某插件下matcher及其触发条件的API #1228
Labels
enhancement
New feature or request
Comments
获取到matcher怎么解析 |
我能拿到matcher的触发条件,但是拿不到matcher的名字 for i in plugin.matcher:
for j in i.rule.checkers:
tmp = list(map(str, re.findall(r"[\"']([^',]+?)['\"]", str(j.call)))) |
matcher是不会存储名字这种东西的,你可以考虑放到 |
增加 如果框架内部有这个东西,就方便多了 这样就可以针对各个插件的matcher级别进行权限控制,以及之前提到的帮助文档生成 |
参考 #1015 目前不会对matcher进行改变,只有插件元数据 |
如果有问题或者建议,请前往 #1015 参与讨论。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是否在使用中遇到某些问题而需要新的特性?请描述:
为了更方便地对权限进行管理,我想获取到某插件下的所有matcher,以及其触发条件
描述你所需要的特性:
该接口能更方便地进行权限管理、命令帮助,甚至对生成机器人的帮助文档都会有很大的帮助
The text was updated successfully, but these errors were encountered: