Skip to content

Commit

Permalink
Make use only of trading items, closes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Feb 16, 2016
1 parent 120691c commit c2cd7ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ArchiSteamFarm/ArchiWebHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ internal bool DeclineTradeOffer(ulong tradeID) {
return true;
}

internal async Task<List<SteamItem>> GetInventory() {
internal async Task<List<SteamItem>> GetMyTradingInventory() {
JObject jObject = null;
for (byte i = 0; i < WebBrowser.MaxRetries && jObject == null; i++) {
jObject = await WebBrowser.UrlGetToJObject("https://steamcommunity.com/my/inventory/json/753/6", Cookie).ConfigureAwait(false);
jObject = await WebBrowser.UrlGetToJObject("https://steamcommunity.com/my/inventory/json/753/6?trading=1", Cookie).ConfigureAwait(false);
}

if (jObject == null) {
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ internal async Task<string> ResponseSendTrade() {
}

await Trading.LimitInventoryRequestsAsync().ConfigureAwait(false);
List<SteamItem> inventory = await ArchiWebHandler.GetInventory().ConfigureAwait(false);
List<SteamItem> inventory = await ArchiWebHandler.GetMyTradingInventory().ConfigureAwait(false);

if (inventory == null || inventory.Count == 0) {
return "Nothing to send, inventory seems empty!";
Expand Down

0 comments on commit c2cd7ca

Please sign in to comment.