Add number of cards drop remaining in "!status" response

This commit is contained in:
stackia
2016-07-30 11:52:21 +08:00
parent fbb24506e2
commit 3e1358b363

View File

@@ -633,7 +633,10 @@ namespace ArchiSteamFarm {
}
if (CardsFarmer.CurrentGamesFarming.Count > 0) {
return "Bot " + BotName + " is farming appIDs: " + string.Join(", ", CardsFarmer.CurrentGamesFarming) + " and has a total of " + CardsFarmer.GamesToFarm.Count + " games left to farm.";
return "Bot " + BotName + " is farming appIDs: " + string.Join(", ", CardsFarmer.CurrentGamesFarming) +
" and has a total of " + CardsFarmer.GamesToFarm.Count + " games left, " +
CardsFarmer.GamesToFarm.Select(g => (int) g.CardsRemaining).DefaultIfEmpty(0).Sum() +
" cards drop remaining to farm.";
}
return "Bot " + BotName + " is not farming anything.";