mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-19 15:58:39 +00:00
TradingPreferences.DontAcceptBotTrades
This commit is contained in:
@@ -193,7 +193,8 @@ namespace ArchiSteamFarm {
|
||||
None = 0,
|
||||
AcceptDonations = 1,
|
||||
SteamTradeMatcher = 2,
|
||||
MatchEverything = 4
|
||||
MatchEverything = 4,
|
||||
DontAcceptBotTrades = 8
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -192,7 +192,7 @@ namespace ArchiSteamFarm {
|
||||
// If it's steam fuckup, temporarily ignore it, otherwise react accordingly, depending on our preference
|
||||
if (tradeOffer.ItemsToReceive.Count == 0) {
|
||||
donationResult = ParseTradeResult.EResult.RejectedTemporarily;
|
||||
} else if (Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.AcceptDonations) || ((tradeOffer.OtherSteamID64 != 0) && Bot.Bots.Values.Any(bot => bot.SteamID == tradeOffer.OtherSteamID64))) {
|
||||
} else if (Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.AcceptDonations) || (!Bot.BotConfig.TradingPreferences.HasFlag(BotConfig.ETradingPreferences.DontAcceptBotTrades) && (tradeOffer.OtherSteamID64 != 0) && Bot.Bots.Values.Any(bot => bot.SteamID == tradeOffer.OtherSteamID64))) {
|
||||
donationResult = ParseTradeResult.EResult.AcceptedWithoutItemLose;
|
||||
} else {
|
||||
donationResult = ParseTradeResult.EResult.RejectedPermanently;
|
||||
|
||||
@@ -207,7 +207,8 @@ namespace ConfigGenerator {
|
||||
None = 0,
|
||||
AcceptDonations = 1,
|
||||
SteamTradeMatcher = 2,
|
||||
MatchEverything = 4
|
||||
MatchEverything = 4,
|
||||
DontAcceptBotTrades = 8
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user