Jump to content


Photo

amount of Gems in trade offer (itemsToReceive)

node.js node-steam-tradeoffer-manager

  • Please log in to reply
2 replies to this topic

#1 neverhood

neverhood

    Member

  • Member
  • PipPip
  • 15 posts

Posted 22 May 2018 - 03:42 AM

I working on some open sourced steam card bot, I want to add option to check gems in trade offer, how can I check if trade offer have exactly 4000 gems?

 

array of accepted items:

acceptedItems: [
  "Chroma 2 Case Key",
  "Mann Co. Supply Crate Key"
],
if (!acceptedItems.includes(offer.itemsToReceive[0].market_hash_name)) {
    client.chatMessage(offer.partner, 'its not 4000 gems');
    return offer.decline();
  }

can someone help me please?

 



#2 TomYoki

TomYoki

    Advanced Member

  • Member
  • PipPipPip
  • 80 posts
  • LocationRiga, Latvia

Posted 22 May 2018 - 09:15 AM

`amount` property is your friend.

https://github.com/D...EconItem#amount


  • Dr. McKay likes this

#3 neverhood

neverhood

    Member

  • Member
  • PipPip
  • 15 posts

Posted 22 May 2018 - 11:34 AM

oh I get it, thank you!







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users