mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Misc style fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user