mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c4a18321bb
@ -4,6 +4,7 @@ import kotlinx.coroutines.delay
|
||||
import net.mamoe.mirai.Bot
|
||||
import net.mamoe.mirai.utils.DefaultLoginSolver
|
||||
import net.mamoe.mirai.utils.LoginSolver
|
||||
import net.mamoe.mirai.utils.LoginSolverInputReader
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
class MiraiConsoleUIPure() : MiraiConsoleUI {
|
||||
@ -55,7 +56,13 @@ class MiraiConsoleUIPure() : MiraiConsoleUI {
|
||||
}
|
||||
|
||||
override fun createLoginSolver(): LoginSolver {
|
||||
return DefaultLoginSolver()
|
||||
return DefaultLoginSolver(
|
||||
reader = object : LoginSolverInputReader {
|
||||
override suspend fun read(question: String): String? {
|
||||
return requestInput(question)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user