mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
2c80f9a034
@ -19,6 +19,7 @@ import net.mamoe.mirai.console.utils.removeManager
|
|||||||
import net.mamoe.mirai.contact.sendMessage
|
import net.mamoe.mirai.contact.sendMessage
|
||||||
import net.mamoe.mirai.event.subscribeMessages
|
import net.mamoe.mirai.event.subscribeMessages
|
||||||
import net.mamoe.mirai.getFriendOrNull
|
import net.mamoe.mirai.getFriendOrNull
|
||||||
|
import net.mamoe.mirai.utils.FileBasedDeviceInfo
|
||||||
import net.mamoe.mirai.utils.SimpleLogger
|
import net.mamoe.mirai.utils.SimpleLogger
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
@ -116,6 +117,7 @@ object DefaultCommands {
|
|||||||
try {
|
try {
|
||||||
MiraiConsole.frontEnd.prePushBot(qqNumber)
|
MiraiConsole.frontEnd.prePushBot(qqNumber)
|
||||||
val bot = Bot(qqNumber, qqPassword) {
|
val bot = Bot(qqNumber, qqPassword) {
|
||||||
|
+FileBasedDeviceInfo
|
||||||
this.loginSolver = MiraiConsole.frontEnd.createLoginSolver()
|
this.loginSolver = MiraiConsole.frontEnd.createLoginSolver()
|
||||||
this.botLoggerSupplier = {
|
this.botLoggerSupplier = {
|
||||||
SimpleLogger("BOT $qqNumber]") { _, message, e ->
|
SimpleLogger("BOT $qqNumber]") { _, message, e ->
|
||||||
|
Loading…
Reference in New Issue
Block a user