mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
fix wrong path of device.json
This commit is contained in:
parent
b16e876718
commit
96e2a8e2e4
@ -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)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user