Skip to content

Commit cd750f5

Browse files
committed
Update ArchiSteamFarm to 5.5.3.3
1 parent 5a180ac commit cd750f5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ArchiSteamFarm

Submodule ArchiSteamFarm updated 250 files

AutoClaimStickers/AutoClaimStickers.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ private async Task AutoClaim() {
9797
}
9898
}
9999
private static async Task ClaimItemTask(Bot bot) {
100-
(bool success, string? token) = await bot.ArchiWebHandler.CachedAccessToken.GetValue().ConfigureAwait(false);
101-
if (!success || string.IsNullOrWhiteSpace(token)) {
100+
string? token = bot.AccessToken;
101+
if (string.IsNullOrWhiteSpace(token)) {
102102
ASF.ArchiLogger.LogGenericWarning($"[{bot.BotName}] Missing token.");
103103
return;
104104
}
105105
if (!await CanClaimItem(bot, token).ConfigureAwait(false)) {
106106
ASF.ArchiLogger.LogGenericInfo($"[{bot.BotName}] No reward to claim.");
107107
return;
108108
}
109-
(success, ClaimItemResponse? response) = await ClaimItem(bot, token).ConfigureAwait(false);
109+
(bool success, ClaimItemResponse? response) = await ClaimItem(bot, token).ConfigureAwait(false);
110110
if (success) {
111111
CommunityItemData? rewardItemData = response!.RewardItem?.community_item_data;
112112
ASF.ArchiLogger.LogGenericInfo($"[{bot.BotName}] Claim success! ItemId: {response.CommunityItemId}{(rewardItemData == null ? "" : $"({rewardItemData.item_name})")}");
@@ -121,8 +121,7 @@ private static async Task<bool> CanClaimItem(Bot bot, string token) {
121121
}
122122
private static async Task<(bool success, ClaimItemResponse? response)> ClaimItem(Bot bot, string token) {
123123
Uri uri = new(SteamApiURL, $"/ISaleItemRewardsService/ClaimItem/v1?access_token={token}");
124-
Dictionary<string, string> data = new(0, StringComparer.Ordinal);
125-
ObjectResponse<ClaimItemData>? response = await bot.ArchiWebHandler.UrlPostToJsonObjectWithSession<ClaimItemData>(uri, data: data, referer: RefererURL, session: ArchiWebHandler.ESession.None).ConfigureAwait(false);
124+
ObjectResponse<ClaimItemData>? response = await bot.ArchiWebHandler.UrlPostToJsonObjectWithSession<ClaimItemData>(uri, data: null, referer: RefererURL, session: ArchiWebHandler.ESession.None).ConfigureAwait(false);
126125
if (response == null || !response.StatusCode.IsSuccessCode()) {
127126
return (false, response?.Content?.Response);
128127
}

AutoClaimStickers/AutoClaimStickers.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Library</OutputType>
4+
<Version>1.0.1.2</Version>
45
</PropertyGroup>
56

67
<ItemGroup>

0 commit comments

Comments
 (0)