mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
[EXPERIMENTAL] Queue discovery
Yes, you know my donation address
This commit is contained in:
@@ -195,18 +195,6 @@ namespace ArchiSteamFarm {
|
||||
await RestartOrExit().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private static async Task RestartOrExit() {
|
||||
if (Program.GlobalConfig.AutoRestart) {
|
||||
ArchiLogger.LogGenericInfo("Restarting...");
|
||||
await Task.Delay(5000).ConfigureAwait(false);
|
||||
Program.Restart();
|
||||
} else {
|
||||
ArchiLogger.LogGenericInfo("Exiting...");
|
||||
await Task.Delay(5000).ConfigureAwait(false);
|
||||
Program.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
internal static void InitBots() {
|
||||
if (Bot.Bots.Count != 0) {
|
||||
return;
|
||||
@@ -387,6 +375,18 @@ namespace ArchiSteamFarm {
|
||||
CreateBot(newBotName).Forget();
|
||||
}
|
||||
|
||||
private static async Task RestartOrExit() {
|
||||
if (Program.GlobalConfig.AutoRestart) {
|
||||
ArchiLogger.LogGenericInfo("Restarting...");
|
||||
await Task.Delay(5000).ConfigureAwait(false);
|
||||
Program.Restart();
|
||||
} else {
|
||||
ArchiLogger.LogGenericInfo("Exiting...");
|
||||
await Task.Delay(5000).ConfigureAwait(false);
|
||||
Program.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class BotConfigEventArgs : EventArgs {
|
||||
internal readonly BotConfig BotConfig;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user