mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-22 01:08:37 +00:00
Misc
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<Copyright>Copyright © ArchiSteamFarm 2015-2019</Copyright>
|
<Copyright>Copyright © ArchiSteamFarm 2015-2019</Copyright>
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
|
||||||
<ErrorReport>none</ErrorReport>
|
<ErrorReport>none</ErrorReport>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
<NoWarn />
|
<NoWarn />
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<PackageIconUrl>https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
|
<PackageIconUrl>https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
|
||||||
<Description>ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.</Description>
|
<Description>ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.</Description>
|
||||||
<ErrorReport>none</ErrorReport>
|
<ErrorReport>none</ErrorReport>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
<NoWarn />
|
<NoWarn />
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<PackageIconUrl>https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
|
<PackageIconUrl>https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<ErrorReport>none</ErrorReport>
|
<ErrorReport>none</ErrorReport>
|
||||||
<FileVersion>4.1.0.2</FileVersion>
|
<FileVersion>4.1.0.2</FileVersion>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
<NoWarn>1591</NoWarn>
|
<NoWarn>1591</NoWarn>
|
||||||
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments>
|
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
|||||||
@@ -315,9 +315,9 @@ namespace ArchiSteamFarm {
|
|||||||
// ReSharper disable once AccessToDisposedClosure
|
// ReSharper disable once AccessToDisposedClosure
|
||||||
async () => await iPlayerService.CallAsync(
|
async () => await iPlayerService.CallAsync(
|
||||||
HttpMethod.Get, "GetOwnedGames", args: new Dictionary<string, object>(3, StringComparer.Ordinal) {
|
HttpMethod.Get, "GetOwnedGames", args: new Dictionary<string, object>(3, StringComparer.Ordinal) {
|
||||||
{ "include_appinfo", 1 },
|
{ "include_appinfo", 1 },
|
||||||
{ "key", steamApiKey },
|
{ "key", steamApiKey },
|
||||||
{ "steamid", steamID }
|
{ "steamid", steamID }
|
||||||
}
|
}
|
||||||
).ConfigureAwait(false)
|
).ConfigureAwait(false)
|
||||||
).ConfigureAwait(false);
|
).ConfigureAwait(false);
|
||||||
@@ -1367,8 +1367,8 @@ namespace ArchiSteamFarm {
|
|||||||
// ReSharper disable once AccessToDisposedClosure
|
// ReSharper disable once AccessToDisposedClosure
|
||||||
async () => await iEconService.CallAsync(
|
async () => await iEconService.CallAsync(
|
||||||
HttpMethod.Post, "DeclineTradeOffer", args: new Dictionary<string, object>(2, StringComparer.Ordinal) {
|
HttpMethod.Post, "DeclineTradeOffer", args: new Dictionary<string, object>(2, StringComparer.Ordinal) {
|
||||||
{ "key", steamApiKey },
|
{ "key", steamApiKey },
|
||||||
{ "tradeofferid", tradeID }
|
{ "tradeofferid", tradeID }
|
||||||
}
|
}
|
||||||
).ConfigureAwait(false)
|
).ConfigureAwait(false)
|
||||||
).ConfigureAwait(false);
|
).ConfigureAwait(false);
|
||||||
@@ -1425,11 +1425,11 @@ namespace ArchiSteamFarm {
|
|||||||
// ReSharper disable once AccessToDisposedClosure
|
// ReSharper disable once AccessToDisposedClosure
|
||||||
async () => await iEconService.CallAsync(
|
async () => await iEconService.CallAsync(
|
||||||
HttpMethod.Get, "GetTradeOffers", args: new Dictionary<string, object>(5, StringComparer.Ordinal) {
|
HttpMethod.Get, "GetTradeOffers", args: new Dictionary<string, object>(5, StringComparer.Ordinal) {
|
||||||
{ "active_only", 1 },
|
{ "active_only", 1 },
|
||||||
{ "get_descriptions", 1 },
|
{ "get_descriptions", 1 },
|
||||||
{ "get_received_offers", 1 },
|
{ "get_received_offers", 1 },
|
||||||
{ "key", steamApiKey },
|
{ "key", steamApiKey },
|
||||||
{ "time_historical_cutoff", uint.MaxValue }
|
{ "time_historical_cutoff", uint.MaxValue }
|
||||||
}
|
}
|
||||||
).ConfigureAwait(false)
|
).ConfigureAwait(false)
|
||||||
).ConfigureAwait(false);
|
).ConfigureAwait(false);
|
||||||
|
|||||||
@@ -448,8 +448,7 @@ namespace ArchiSteamFarm {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return permission switch
|
return permission switch {
|
||||||
{
|
|
||||||
BotConfig.EPermission.FamilySharing when SteamFamilySharingIDs.Contains(steamID) => true,
|
BotConfig.EPermission.FamilySharing when SteamFamilySharingIDs.Contains(steamID) => true,
|
||||||
_ => BotConfig.SteamUserPermissions.TryGetValue(steamID, out BotConfig.EPermission realPermission) && (realPermission >= permission),
|
_ => BotConfig.SteamUserPermissions.TryGetValue(steamID, out BotConfig.EPermission realPermission) && (realPermission >= permission),
|
||||||
};
|
};
|
||||||
@@ -1866,15 +1865,14 @@ namespace ArchiSteamFarm {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (paymentMethod) {
|
// Complimentary is also a flag
|
||||||
case EPaymentMethod.ActivationCode:
|
return paymentMethod switch {
|
||||||
case EPaymentMethod.Complimentary: // This is also a flag
|
EPaymentMethod.ActivationCode => false,
|
||||||
case EPaymentMethod.GuestPass:
|
EPaymentMethod.Complimentary => false,
|
||||||
case EPaymentMethod.HardwarePromo:
|
EPaymentMethod.GuestPass => false,
|
||||||
return false;
|
EPaymentMethod.HardwarePromo => false,
|
||||||
default:
|
_ => !paymentMethod.HasFlag(EPaymentMethod.Complimentary)
|
||||||
return !paymentMethod.HasFlag(EPaymentMethod.Complimentary);
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task JoinMasterChatGroupID() {
|
private async Task JoinMasterChatGroupID() {
|
||||||
|
|||||||
Reference in New Issue
Block a user