From 1e127732c2477a71ab6d9441c5660348a5c791e7 Mon Sep 17 00:00:00 2001 From: Him188moe Date: Tue, 20 Aug 2019 18:56:15 +0800 Subject: [PATCH] update --- mirai-core/src/main/java/net/mamoe/mirai/MiraiServer.java | 6 ++++-- .../src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mirai-core/src/main/java/net/mamoe/mirai/MiraiServer.java b/mirai-core/src/main/java/net/mamoe/mirai/MiraiServer.java index 27a9c2c47..973cf0df2 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/MiraiServer.java +++ b/mirai-core/src/main/java/net/mamoe/mirai/MiraiServer.java @@ -4,6 +4,7 @@ import lombok.Getter; import net.mamoe.mirai.event.MiraiEventManager; import net.mamoe.mirai.event.events.server.ServerDisableEvent; import net.mamoe.mirai.event.events.server.ServerEnableEvent; +import net.mamoe.mirai.network.Protocol; import net.mamoe.mirai.network.Robot; import net.mamoe.mirai.task.MiraiTaskManager; import net.mamoe.mirai.utils.LoggerTextFormat; @@ -97,9 +98,10 @@ public class MiraiServer { Robot robot = new Robot(1994701021, "xiaoqqq"); try { + System.out.println(Protocol.Companion.getSERVER_IP().get(3)); //System.out.println(Protocol.Companion.getSERVER_IP().toString()); - //robot.connect("127.0.0.1"); - robot.connect("125.39.132.242"); + robot.connect(Protocol.Companion.getSERVER_IP().get(3)); + //robot.connect("125.39.132.242"); } catch (InterruptedException e) { e.printStackTrace(); System.exit(1); diff --git a/mirai-core/src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt b/mirai-core/src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt index 87871cf87..f9a3e955f 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/utils/MiraiLogger.kt @@ -11,9 +11,9 @@ object MiraiLogger { this.print(o.toString()) } - infix fun log(o: Any?) = MiraiLogger.info(o) + infix fun log(o: Any?) = info(o) - infix fun println(o: Any?) = MiraiLogger.info(o) + infix fun println(o: Any?) = info(o) infix fun debug(o: Any?) { this.print(o.toString())