Skip to content

Commit

Permalink
Fix ambiguous function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Feb 18, 2020
1 parent 08bdf82 commit 680f452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ object MiraiConsole {
*/
object DefaultCommands {
operator fun invoke() {
buildCommand {
registerCommand {
name = "login"
description = "Mirai-Console default bot login command"
onCommand {
Expand Down Expand Up @@ -170,7 +170,7 @@ object MiraiConsole {
}
}

buildCommand {
registerCommand {
name = "status"
description = "Mirai-Console default status command"
onCommand {
Expand All @@ -197,7 +197,7 @@ object MiraiConsole {
}


buildCommand {
registerCommand {
name = "say"
description = "Mirai-Console default say command"
onCommand {
Expand Down Expand Up @@ -236,7 +236,7 @@ object MiraiConsole {
}


buildCommand {
registerCommand {
name = "plugins"
alias = listOf("plugin")
description = "show all plugins"
Expand All @@ -251,7 +251,7 @@ object MiraiConsole {
}
}

buildCommand {
registerCommand {
name = "command"
alias = listOf("commands", "help", "helps")
description = "show all commands"
Expand All @@ -266,7 +266,7 @@ object MiraiConsole {
}
}

buildCommand {
registerCommand {
name = "about"
description = "About Mirai-Console"
onCommand {
Expand Down

0 comments on commit 680f452

Please sign in to comment.