ThunbergOlle / SteamTradeBot

Open source steam trading bot. Accepting or declining trades based on the automatic value calculation.
MIT License
93 stars 16 forks source link

If there are duplicates inside array the bot won't get the items #7

Closed ThunbergOlle closed 6 years ago

ThunbergOlle commented 6 years ago

If there are duplicates inside the array the bot won't get the items. This is caused by the "steam-market-pricing" module that I'm using. ❌

I will be modifieng it and update as soon as possible.

Example

const market = require('steam-market-pricing');

const ourItems = [
  'Tec-9 | Groundwater (Field-Tested)',
  'Gamma Case',
  'Gamma Case'
]
market.getItemsPrice(730, ourItems, (err, data) => {
  if(err) console.log(err);
  console.log(data);
})
ThunbergOlle commented 6 years ago

Fixed this in commit: https://github.com/ThunbergOlle/SteamTradeBot/commit/d6d2e308c3376fb5749c39e5c142eda3ce2fa84a 👍