mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 00:50:15 +00:00
Misc
This commit is contained in:
@@ -236,7 +236,7 @@ namespace ArchiSteamFarm {
|
||||
CallbackManager.Subscribe<ArchiHandler.SharedLibraryLockStatusCallback>(OnSharedLibraryLockStatus);
|
||||
|
||||
ArchiWebHandler = new ArchiWebHandler(this);
|
||||
CardsFarmer = new CardsFarmer(this);
|
||||
CardsFarmer = new CardsFarmer(this, BotConfig.Paused);
|
||||
Trading = new Trading(this);
|
||||
|
||||
HeartBeatTimer = new Timer(
|
||||
@@ -269,10 +269,6 @@ namespace ArchiSteamFarm {
|
||||
throw new ArgumentException("That bot is already defined!");
|
||||
}
|
||||
|
||||
if (BotConfig.Paused) {
|
||||
CardsFarmer.Pause().Wait();
|
||||
}
|
||||
|
||||
if (!BotConfig.StartOnLaunch) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -96,12 +96,13 @@ namespace ArchiSteamFarm {
|
||||
|
||||
private bool KeepFarming, NowFarming;
|
||||
|
||||
internal CardsFarmer(Bot bot) {
|
||||
internal CardsFarmer(Bot bot, bool paused) {
|
||||
if (bot == null) {
|
||||
throw new ArgumentNullException(nameof(bot));
|
||||
}
|
||||
|
||||
Bot = bot;
|
||||
Paused = paused;
|
||||
|
||||
if (Program.GlobalConfig.IdleFarmingPeriod > 0) {
|
||||
IdleFarmingTimer = new Timer(
|
||||
|
||||
Reference in New Issue
Block a user