mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-12 06:34:25 +00:00
Automatically restart idling if it includes the appID that we've just blacklisted
This commit is contained in:
@@ -1179,6 +1179,15 @@ namespace ArchiSteamFarm {
|
||||
|
||||
Bot.BotDatabase.AddIdlingBlacklistedAppIDs(appIDs);
|
||||
|
||||
if (Bot.CardsFarmer.NowFarming && Bot.CardsFarmer.GamesToFarmReadOnly.Any(game => appIDs.Contains(game.AppID))) {
|
||||
Utilities.InBackground(
|
||||
async () => {
|
||||
await Bot.CardsFarmer.StopFarming().ConfigureAwait(false);
|
||||
await Bot.CardsFarmer.StartFarming().ConfigureAwait(false);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
return FormatBotResponse(Strings.Done);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user