Skip to content

Commit

Permalink
update to OnBotTradeOffer2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudokhvist committed Aug 2, 2024
1 parent ff06c88 commit a61724e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ArchiSteamFarm
Submodule ArchiSteamFarm updated 278 files
5 changes: 3 additions & 2 deletions ItemDispenser/ItemDispenser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Steam.Cards;
using ArchiSteamFarm.Steam.Data;
using ArchiSteamFarm.Steam.Exchange;
using ArchiSteamFarm.Steam.Storage;

namespace ItemDispenser;

[Export(typeof(IPlugin))]

internal sealed class ItemDispenser : IBotTradeOffer, IBotModules {
internal sealed class ItemDispenser : IBotTradeOffer2, IBotModules {
private static readonly ConcurrentDictionary<Bot, FrozenDictionary<(uint AppID, ulong ContextID), FrozenSet<EAssetType>>> BotSettings = new();

public string Name => nameof(ItemDispenser);
Expand Down Expand Up @@ -69,7 +70,7 @@ public Task OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JsonElement>?
return Task.CompletedTask;
}

public async Task<bool> OnBotTradeOffer(Bot bot, TradeOffer tradeOffer) {
public async Task<bool> OnBotTradeOffer(Bot bot, TradeOffer tradeOffer, ParseTradeResult.EResult asfresult) {
ArgumentNullException.ThrowIfNull(bot);
ArgumentNullException.ThrowIfNull(tradeOffer);

Expand Down
2 changes: 1 addition & 1 deletion ItemDispenser/ItemDispenser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Authors>Rudokhvist</Authors>
<AssemblyVersion>2.0.0.1</AssemblyVersion>
<AssemblyVersion>2.0.1.0</AssemblyVersion>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down

0 comments on commit a61724e

Please sign in to comment.