print usage

This commit is contained in:
jiahua.liu 2020-02-25 17:55:17 +08:00
parent 4a02648102
commit a126e3f660
2 changed files with 3 additions and 1 deletions

View File

@ -159,7 +159,7 @@ object MiraiConsole {
commandStr = "/$commandStr"
}
if (!CommandManager.runCommand(command.sender, commandStr)) {
logger("未知指令 $commandStr")
command.sender.sendMessage("未知指令 $commandStr")
}
}
}

View File

@ -74,6 +74,8 @@ object CommandManager {
)
) {
PluginManager.onCommand(this, args)
} else {
sender.sendMessage(this.usage)
}
} catch (e: Exception) {
sender.sendMessage("在运行指令时出现了未知错误")