Skip to content

Commit

Permalink
fix QQ机器人
Browse files Browse the repository at this point in the history
  • Loading branch information
Naccl committed Sep 7, 2024
1 parent 3800e1c commit d9af671
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static synchronized void login(long qq, long groupId) {
customLoginSolver = new CustomLoginSolver();

bot = BotFactory.INSTANCE.newBot(qq, BotAuthorization.byQRCode(), configuration -> {
configuration.setProtocol(BotConfiguration.MiraiProtocol.ANDROID_WATCH);
configuration.setProtocol(BotConfiguration.MiraiProtocol.MACOS);
configuration.fileBasedDeviceInfo();
configuration.setLoginSolver(customLoginSolver);
});
Expand Down

0 comments on commit d9af671

Please # to comment.