neverhood Posted May 22, 2018 Report Share Posted May 22, 2018 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? Quote Link to comment Share on other sites More sharing options...
TomYoki Posted May 22, 2018 Report Share Posted May 22, 2018 `amount` property is your friend.https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#amount Dr. McKay 1 Quote Link to comment Share on other sites More sharing options...
neverhood Posted May 22, 2018 Author Report Share Posted May 22, 2018 oh I get it, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.