فهرست منبع

fix wrong path of device.json

mzdluo123 5 سال پیش
والد
کامیت
96e2a8e2e4
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      backend/mirai-console/src/MiraiConsole.kt

+ 2 - 0
backend/mirai-console/src/MiraiConsole.kt

@@ -139,6 +139,7 @@ public interface MiraiConsole : CoroutineScope {
         @Suppress("UNREACHABLE_CODE")
         @Suppress("UNREACHABLE_CODE")
         private fun addBotImpl(id: Long, password: Any, configuration: BotConfiguration.() -> Unit = {}): Bot {
         private fun addBotImpl(id: Long, password: Any, configuration: BotConfiguration.() -> Unit = {}): Bot {
             var config = BotConfiguration().apply {
             var config = BotConfiguration().apply {
+                workingDir = rootDir
                 fileBasedDeviceInfo()
                 fileBasedDeviceInfo()
                 redirectNetworkLogToDirectory()
                 redirectNetworkLogToDirectory()
                 this.botLoggerSupplier = {
                 this.botLoggerSupplier = {
@@ -153,6 +154,7 @@ public interface MiraiConsole : CoroutineScope {
             config = GlobalComponentStorage.run {
             config = GlobalComponentStorage.run {
                 BotConfigurationAlterer.foldExtensions(config) { acc, extension ->
                 BotConfigurationAlterer.foldExtensions(config) { acc, extension ->
                     extension.alterConfiguration(id, acc)
                     extension.alterConfiguration(id, acc)
+
                 }
                 }
             }
             }