Jump to content
McKay Development

spock

Member
  • Posts

    36
  • Joined

  • Last visited

Everything posted by spock

  1. I have this code in my offers offers.on('sentOfferChanged', function(offer, oldState) { logger.log("Offer #" + offer.id + " changed: " + TradeOfferManager.getStateName(oldState) + " -> " + TradeOfferManager.getStateName(offer.state)); if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { offer.getReceivedItems(function(err, items) { if (err) { console.log("Couldn't get received items: " + err); } else { var names = items.map(function(item) { return item.name; }); logger.log("Received: " + names.join(', ')); } }); } }); As of this morning i'm not getting an event when I confirm my trade via my mobile app even though the trade was accepted and the items are now in the bots inventory. Sometimes I will get an err eventually and i'll get this Couldn't get received items: Error: Steam returned unsuccessful response However, most trades I wont get anything. Is this a steam issue? edit: here's my manager setting var offers = new TradeOfferManager({ steam: client, domain: config.domain, language: "en", cancelTime: 300000 }); I assume polling is automatic?
  2. offers.on('sentOfferChanged', function(offer, oldState) { logger.log("Offer #" + offer.id + " changed: " + TradeOfferManager.getStateName(oldState) + " -> " + TradeOfferManager.getStateName(offer.state)); if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { offer.getReceivedItems(function(err, items) { if (err) { console.log("Couldn't get received items: " + err); } else { var names = items.map(function(item) { return item.name; }); console.log("Received: " + names.join(', ')); } }); } }); I'm trying to get the steam id from the partner object but the steamId object only contains 4 properties. partner: SteamID { universe: 1, type: 1, instance: 1, accountid: xxx }, Is there a way to get the steamId from this?
  3. Thank you!
  4. Right now when I fire up my node bot, I have to manually type in the steam guard mobile code every time I log in through terminal. Is there a way to automate this process?
  5. Much appreciated. Also, is it true I need to pay $5 for my steam wallet?
  6. I'm new to bot development and steam trading and I have a few questions. What are the limitations of creating a new steam account and trading right away with said account? Is it possible to bypass steams (15 day trade hold, and 15item hold? do I have this correct?) What is a sentry file and how does this affect steam bot trading? Any resources would be greatly appreciated. Cheers.
  7. Ah that's one way to do it. I'm curious because csgolotto, for examble, has your trade url when you click on your profile. However, I've never shared my trade url with them before.
  8. Yeah, that's the workflow I came up with on paper. Essentially, have the user select items from their inventory (I'm assuming you just need the item id?). Send the list of items to the backend, assign a bot to the user, have the bot create an offer trade with the users list of the item id's that the previously sent. The problem I encounter is do I need to first send a friend request to webpp/user before I can make a trade offer? Can't make a trade offer without being friends correct?
  9. I'm looking through steam-user and I can't find a method for extracting the trade url from a user (if I want to send a user a trade req for eg). Is it possible to get a trade url (with a partner Id and a token id) with just a users steam id (not just your own?) Thanks
  10. I have a web app that allows users to sign in through steam and I store their user information and session id in my db after pulling their info from steam. I can also pull their inventory data. I'm trying to make it so users can send trade requests to my bots through my web app (not through the steam gui) as long as they are authed in. I have users trade url and token as well as the inventory items (id and app id). How can I leverage node steam trade offer manager to accomplish this? if at all? I know some websites do this (eg: csgolotto.com) etc. I
×
×
  • Create New...