mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
update
This commit is contained in:
parent
b3a227e51d
commit
1e127732c2
@ -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);
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user