File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
mirai-console/src/main/kotlin/net/mamoe/mirai/console Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class CommandBuilder internal constructor() {
124124 }
125125}
126126
127- fun buildCommand (builder : CommandBuilder .() -> Unit ): ICommand {
127+ fun registerCommand (builder : CommandBuilder .() -> Unit ): ICommand {
128128 return CommandBuilder ().apply (builder).register()
129129}
130130
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ object MiraiConsole {
117117 */
118118 object DefaultCommands {
119119 operator fun invoke () {
120- buildCommand {
120+ registerCommand {
121121 name = " login"
122122 description = " Mirai-Console default bot login command"
123123 onCommand {
@@ -170,7 +170,7 @@ object MiraiConsole {
170170 }
171171 }
172172
173- buildCommand {
173+ registerCommand {
174174 name = " status"
175175 description = " Mirai-Console default status command"
176176 onCommand {
@@ -197,7 +197,7 @@ object MiraiConsole {
197197 }
198198
199199
200- buildCommand {
200+ registerCommand {
201201 name = " say"
202202 description = " Mirai-Console default say command"
203203 onCommand {
@@ -236,7 +236,7 @@ object MiraiConsole {
236236 }
237237
238238
239- buildCommand {
239+ registerCommand {
240240 name = " plugins"
241241 alias = listOf (" plugin" )
242242 description = " show all plugins"
@@ -251,7 +251,7 @@ object MiraiConsole {
251251 }
252252 }
253253
254- buildCommand {
254+ registerCommand {
255255 name = " command"
256256 alias = listOf (" commands" , " help" , " helps" )
257257 description = " show all commands"
@@ -266,7 +266,7 @@ object MiraiConsole {
266266 }
267267 }
268268
269- buildCommand {
269+ registerCommand {
270270 name = " about"
271271 description = " About Mirai-Console"
272272 onCommand {
You can’t perform that action at this time.
0 commit comments