mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-02 12:50:16 +08:00
print usage
This commit is contained in:
parent
4a02648102
commit
a126e3f660
@ -159,7 +159,7 @@ object MiraiConsole {
|
||||
commandStr = "/$commandStr"
|
||||
}
|
||||
if (!CommandManager.runCommand(command.sender, commandStr)) {
|
||||
logger("未知指令 $commandStr")
|
||||
command.sender.sendMessage("未知指令 $commandStr")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -74,6 +74,8 @@ object CommandManager {
|
||||
)
|
||||
) {
|
||||
PluginManager.onCommand(this, args)
|
||||
} else {
|
||||
sender.sendMessage(this.usage)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
sender.sendMessage("在运行指令时出现了未知错误")
|
||||
|
Loading…
Reference in New Issue
Block a user