1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-05-06 06:12:34 +08:00

Fix ambiguous function name

This commit is contained in:
Him188 2020-02-18 15:01:35 +08:00
parent 08bdf82125
commit 680f452cae
2 changed files with 7 additions and 7 deletions
mirai-console/src/main/kotlin/net/mamoe/mirai/console

View File

@ -124,7 +124,7 @@ class CommandBuilder internal constructor() {
}
}
fun buildCommand(builder: CommandBuilder.() -> Unit): ICommand {
fun registerCommand(builder: CommandBuilder.() -> Unit): ICommand {
return CommandBuilder().apply(builder).register()
}

View File

@ -117,7 +117,7 @@ object MiraiConsole {
*/
object DefaultCommands {
operator fun invoke() {
buildCommand {
registerCommand {
name = "login"
description = "Mirai-Console default bot login command"
onCommand {
@ -170,7 +170,7 @@ object MiraiConsole {
}
}
buildCommand {
registerCommand {
name = "status"
description = "Mirai-Console default status command"
onCommand {
@ -197,7 +197,7 @@ object MiraiConsole {
}
buildCommand {
registerCommand {
name = "say"
description = "Mirai-Console default say command"
onCommand {
@ -236,7 +236,7 @@ object MiraiConsole {
}
buildCommand {
registerCommand {
name = "plugins"
alias = listOf("plugin")
description = "show all plugins"
@ -251,7 +251,7 @@ object MiraiConsole {
}
}
buildCommand {
registerCommand {
name = "command"
alias = listOf("commands", "help", "helps")
description = "show all commands"
@ -266,7 +266,7 @@ object MiraiConsole {
}
}
buildCommand {
registerCommand {
name = "about"
description = "About Mirai-Console"
onCommand {