Skip to content
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

对 mirai-console 内置 Command 支持 #38

Open
PigeonYuze opened this issue Jul 13, 2023 · 0 comments
Open

对 mirai-console 内置 Command 支持 #38

PigeonYuze opened this issue Jul 13, 2023 · 0 comments
Milestone

Comments

@PigeonYuze
Copy link
Owner

对于内部实现的 Command (例如: OnlyRunCommand,NormalCommand,ArgCommand)

都支持将指令的实现对接 mirai-console 中的 Command 实现

其内值由 YamlBot 内部自行实现

Command 新增配置选项 isByMiraiConsole

  • 是否启用 mirai-console 模式 启用后针对指令处理不再由 YamlBot 接管 而是由下层的chat-command或其他处理插件 进行调用
  • 类型为布尔值(true|false)
  • 默认为不开启false

同样地,如果开启了 isByMiraiConsole 将支持由控制台发送的指令,但这也可能导致某些模板的运行时错误(因为控制台环境无法提供诸如群聊等信息)

@PigeonYuze PigeonYuze added this to the v2.0.0 milestone Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant