Random Number for delayed connecting bots

See my answer @ #10
This commit is contained in:
Pandi 2015-11-03 19:06:50 +01:00
parent e8335ac183
commit ef29b6f33d

View file

@ -150,7 +150,9 @@ namespace ArchiSteamFarm {
if (!bot.Enabled) {
Logging.LogGenericInfo(botName, "Not starting this instance because it's disabled in config file");
}
Thread.Sleep(1000); // Try to avoid spamming steam
Random random = new Random();
int randomNumber = random.Next(5, 15); // pick random number between 5 and 15
Thread.Sleep(randomNumber*1000); // Try to avoid spamming steam
}
// Check if we got any bots running