diff --git a/mirai-console/build.gradle.kts b/mirai-console/build.gradle.kts index 765ffb88d..c2ef4d870 100644 --- a/mirai-console/build.gradle.kts +++ b/mirai-console/build.gradle.kts @@ -10,7 +10,7 @@ apply(plugin = "com.github.johnrengelman.shadow") tasks.withType() { manifest { - attributes["Main-Class"] = "net.mamoe.mirai.MiraiConsoleLoader" + attributes["Main-Class"] = "net.mamoe.mirai.console.MiraiConsoleLoader" } } diff --git a/mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt b/mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt index 98a968f77..26a2ad896 100644 --- a/mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt +++ b/mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt @@ -63,12 +63,11 @@ object MiraiConsole { logger("Mirai为开源项目,请自觉遵守开源项目协议") logger("Powered by Mamoe Technologies and contributors") - runBlocking { - DefaultCommands() - HTTPAPIAdaptar() - pluginManager.loadPlugins() - CommandListener.start() - } + + DefaultCommands() + HTTPAPIAdaptar() + pluginManager.loadPlugins() + CommandListener.start() logger("Mirai-console 启动完成") logger("\"/login qqnumber qqpassword \" to login a bot")