mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] MiraiMain 显性设置DeviceInfo为'randomDeviceInfo';
This commit is contained in:
parent
7ccb306ca1
commit
b9180b9651
@ -51,6 +51,7 @@ public class MiraiMain implements Closeable {
|
||||
|
||||
Utils.setDefaultLogger(MiraiToSlf4jLoggerAdapter::new);
|
||||
BotConfiguration configuration = new BotConfiguration();
|
||||
configuration.randomDeviceInfo();
|
||||
configuration.setProtocol(BotConfiguration.MiraiProtocol.ANDROID_PAD);
|
||||
bot = BotFactoryJvm.newBot(Long.parseLong(botProperties.getProperty("bot.qq", "0")),
|
||||
Base64.getDecoder().decode(botProperties.getProperty("bot.password", "")), configuration);
|
||||
|
Loading…
Reference in New Issue
Block a user