命令深度 #44
Locked
RF-Tar-Railt
started this conversation in
Ideas
命令深度
#44
Replies: 1 comment 1 reply
-
|
直接做成 *match_sentences 不就好了。。 |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
众所周知,Alconna 内包括 Subcommand和 Option 两大组件,Option与Subcommand的结合允许 Alconna 拓展其命令层数
其允许
test sub opt <...>三层层数但假设以下命令
/test bot shedule add <...>其命令层数超过了 3层,Alconna 目前无法有效应对这种情况。
目前我预想了两种解决方案:
该方案最易实现,但容易造成因为嵌套过多导致的“杀人书”
例如 Option(bar, require=foo)
Beta Was this translation helpful? Give feedback.
All reactions