允许在聊天环境执行指令.
请先通过 /perm 为用户设置指定指令的权限. 详见 Mirai Console 的权限文档.
使用 Mirai Console Loader 安装chat-command
MCL支持自动更新插件,支持设置插件更新频道等功能
./mcl --update-package net.mamoe:chat-command --channel stable --type plugin
- 运行 Mirai Console 生成plugins文件夹
- 从 Releases 下载
jar并将其放入plugins文件夹中
reply 输出 可选项 NONE, USER, CONSOLE, ALL
enabled插件是否启用. 设置 false 时禁用插件.reply_unresolved_command_help参数不匹配时输出帮助对象. 默认 USERreply_illegal_argument_help参数不匹配时输出帮助对象. 默认 USERreply_permission_denied_help权限不足时输出帮助对象. 默认 CONSOLEreply_intercepted_help指令被拦截时输出帮助对象. 默认 CONSOLEreply_execution_failed_help指令解析失败时输出帮助对象. 默认 CONSOLE