QQ机器人根据model切换账号及日志输出

This commit is contained in:
yutou 2020-10-27 18:21:49 +08:00
parent 68de3c742c
commit 749936f73a

View File

@ -39,7 +39,7 @@ public class QQBotManager {
public void run() { public void run() {
long qq=2476945931L; long qq=2476945931L;
String password="zhang34864394"; String password="zhang34864394";
if(false) { if(ConfigTools.load(ConfigTools.CONFIG, "model").equals("dev")) {
qq = 3620756944L; qq = 3620756944L;
password = "UAs6YBYMyxJU"; password = "UAs6YBYMyxJU";
} }
@ -47,8 +47,10 @@ public class QQBotManager {
bot = BotFactoryJvm.newBot(qq, password, new BotConfiguration() { bot = BotFactoryJvm.newBot(qq, password, new BotConfiguration() {
{ {
fileBasedDeviceInfo("qq_bot_devices_info.json"); fileBasedDeviceInfo("qq_bot_devices_info.json");
noBotLog(); if(ConfigTools.load(ConfigTools.CONFIG, "model").equals("nas")) {
noNetworkLog(); noBotLog();
noNetworkLog();
}
} }
}); });
Events.registerEvents(bot, new MessageListener()); Events.registerEvents(bot, new MessageListener());