From 749936f73a96c4ba97228ecf3f8908c6e2ca22b5 Mon Sep 17 00:00:00 2001 From: yutou Date: Tue, 27 Oct 2020 18:21:49 +0800 Subject: [PATCH] =?UTF-8?q?QQ=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?model=E5=88=87=E6=8D=A2=E8=B4=A6=E5=8F=B7=E5=8F=8A=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/tools/utils/QQBotManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/tools/utils/QQBotManager.java b/src/main/java/com/yutou/tools/utils/QQBotManager.java index 64e3219..36ff6a3 100644 --- a/src/main/java/com/yutou/tools/utils/QQBotManager.java +++ b/src/main/java/com/yutou/tools/utils/QQBotManager.java @@ -39,7 +39,7 @@ public class QQBotManager { public void run() { long qq=2476945931L; String password="zhang34864394"; - if(false) { + if(ConfigTools.load(ConfigTools.CONFIG, "model").equals("dev")) { qq = 3620756944L; password = "UAs6YBYMyxJU"; } @@ -47,8 +47,10 @@ public class QQBotManager { bot = BotFactoryJvm.newBot(qq, password, new BotConfiguration() { { fileBasedDeviceInfo("qq_bot_devices_info.json"); - noBotLog(); - noNetworkLog(); + if(ConfigTools.load(ConfigTools.CONFIG, "model").equals("nas")) { + noBotLog(); + noNetworkLog(); + } } }); Events.registerEvents(bot, new MessageListener());