Skip to content

Commit

Permalink
[OneBot] Add Config for AutoReLogin
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan04 committed Jun 20, 2024
1 parent 92eeb31 commit 8df1bda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lagrange.OneBot/LagrangeAppBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public LagrangeAppBuilder ConfigureBots()
Protocol = isSuccess ? protocol : Protocols.Linux,
AutoReconnect = bool.Parse(Configuration["Account:AutoReconnect"] ?? "true"),
UseIPv6Network = bool.Parse(Configuration["Account:UseIPv6Network"] ?? "false"),
GetOptimumServer = bool.Parse(Configuration["Account:GetOptimumServer"] ?? "true")
GetOptimumServer = bool.Parse(Configuration["Account:GetOptimumServer"] ?? "true"),
AutoReLogin = bool.Parse(Configuration["Account:AutoReLogin"] ?? "true"),
};

BotKeystore keystore;
Expand Down

0 comments on commit 8df1bda

Please sign in to comment.