QQ机器人根据model切换账号及日志输出
This commit is contained in:
parent
68de3c742c
commit
749936f73a
@ -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,9 +47,11 @@ 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");
|
||||||
|
if(ConfigTools.load(ConfigTools.CONFIG, "model").equals("nas")) {
|
||||||
noBotLog();
|
noBotLog();
|
||||||
noNetworkLog();
|
noNetworkLog();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Events.registerEvents(bot, new MessageListener());
|
Events.registerEvents(bot, new MessageListener());
|
||||||
bot.login();
|
bot.login();
|
||||||
|
Loading…
Reference in New Issue
Block a user