mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 13:46:13 +08:00
feat: more login info (#2304)
This commit is contained in:
parent
48143d7b3c
commit
1b5f45cd70
@ -356,7 +356,6 @@ ___ ____ _ _____ _
|
|||||||
}
|
}
|
||||||
if (id == 123456L) continue
|
if (id == 123456L) continue
|
||||||
fun BotConfiguration.configBot() {
|
fun BotConfiguration.configBot() {
|
||||||
mainLogger.info { "Auto-login ${account.account}" }
|
|
||||||
|
|
||||||
account.configuration[ConfigurationKey.protocol]?.let { protocol ->
|
account.configuration[ConfigurationKey.protocol]?.let { protocol ->
|
||||||
this.protocol = runCatching {
|
this.protocol = runCatching {
|
||||||
@ -381,6 +380,8 @@ ___ ____ _ _____ _
|
|||||||
account.configuration[ConfigurationKey.device]?.let { device ->
|
account.configuration[ConfigurationKey.device]?.let { device ->
|
||||||
fileBasedDeviceInfo(device.toString())
|
fileBasedDeviceInfo(device.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mainLogger.info { "Auto-login ${account.account}, protocol: ${this.protocol}, heartbeatStrategy: ${this.heartbeatStrategy}" }
|
||||||
}
|
}
|
||||||
|
|
||||||
val bot = when (account.password.kind) {
|
val bot = when (account.password.kind) {
|
||||||
|
Loading…
Reference in New Issue
Block a user