diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index abf215a56..e8e472b77 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -440,15 +440,15 @@ namespace ArchiSteamFarm { } internal static string ResponseStatus(string botName) { - Bot bot; if (string.IsNullOrEmpty(botName)) { return null; } + Bot bot; if (!Bots.TryGetValue(botName, out bot)) { - return "Couldn't find any bot named " + botName + "!"; ; + return "Couldn't find any bot named " + botName + "!"; } - + if (bot.CardsFarmer.CurrentGamesFarming.Count > 0) { return "Bot " + bot.BotName + " is currently farming appIDs: " + string.Join(", ", bot.CardsFarmer.CurrentGamesFarming) + " and has a total of " + bot.CardsFarmer.GamesToFarm.Count + " games left to farm."; } else { @@ -458,9 +458,9 @@ namespace ArchiSteamFarm { } internal static string ResponseStatusAll() { - StringBuilder result = new StringBuilder(); - foreach (var curbot in Bots) { - result.Append(ResponseStatus(curbot.Key)+Environment.NewLine); + StringBuilder result = new StringBuilder(Environment.NewLine); + foreach (var bot in Bots) { + result.Append(ResponseStatus(bot.Key) + Environment.NewLine); } result.Append("Currently " + Bots.Count + " bots are running."); return result.ToString();