We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e12f858 commit 93cf5c4Copy full SHA for 93cf5c4
scalabot-app/src/main/kotlin/AppMain.kt
@@ -13,14 +13,14 @@ import kotlin.system.exitProcess
13
14
private val log = KotlinLogging.logger { }
15
16
-private val launcher = Launcher()
17
- .registerShutdownHook()
18
-
19
fun main(args: Array<String>): Unit = runBlocking {
20
log.info { "ScalaBot 正在启动中..." }
21
log.info { "数据目录: ${AppPaths.DATA_ROOT}" }
22
log.debug { "启动参数: ${args.joinToString(prefix = "[", postfix = "]")}" }
23
initialFiles()
+
+ val launcher = Launcher()
+ .registerShutdownHook()
24
if (Const.config.metrics.enable) {
25
startMetricsServer()
26
}
0 commit comments