Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steam-tradeoffer-manager'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

  1. Hi there. I own few bots and I don't know how to make script, which bot should send trade offer to receive items from user. It can be made from steam bot or should I store data with items on the each bot in database? Or there is maybe some error code when bot can't receive items so I will check the next bot?
  2. Hello! Basically if my bot runs into a getEscrowDuration error it doesn't poll the same offer again unless I restart the bot, not even a manager.doPoll can fix the issue. I know the getEscrowDuration error is on Steam's fault but the manager completely ignores the offer even though it's active once it runs into that error. Here's my code: offer.getEscrowDuration(function(err, daysTheirEscrow, daysMyEscrow) { if(err) { console.log(err); client.webLogOn(); return; } I've only put the client.weblogOn there recently to make sure the bot has the right cookies when it fails to get the escrow duration, but then it doesn't go through the same offer until I restart it. Any help is appreciated! ~ Gergő
  3. Hi, how i can get the Partner Steamname? i already get the steamid with this var steamid = offer.partner.getSteamID64(); but i need the steamname of the user :x
  4. Hello, I have a system that sends a tradeoffer to a person and then you have to confirm it via website. When confirming, the bot executes following code: offers.getOffer(m.tradeid,function(err,offer){ if(err) return logger.info("Confirmation error: "+err); switch(offer.state) { case 2: notify(m.client,'Your offer is still pending.'); break; case 1: removeOffer(m.client,m.tradeid,"Invalid trade offer, declining..."); break; case 3: break;//accepted case 4:{ offer.decline(function(err){ //this is wrong, the offer ID is no longer valid if(err) logger.info("There was an error declining bad trade offer: "+err); removeOffer(m.client,m.tradeid,"Do not modify the trades sent by our bots. Trade offer cancelled."); }); break; } case 6: removeOffer(m.client,m.tradeid,"Trade offer cancelled by the bot."); break; case 7: removeOffer(m.client,m.tradeid,"Trade offer cancelled."); break; case 8: removeOffer(m.client,m.tradeid,"Items no longer available."); } });If the offer.state equals 4 (Countered), I should decline the counter-offer, but the ID is no longer valid. How can I get the new ID of a counter-offer?
  5. I rewrote a project of mine and I'm getting "HTTP error 400" when I send a trade. Is there a way for me to see what the URL being requested looks like? My steamID object, token, and items all look fine. https://gyazo.com/c6810441e92be15f49eb43f22ad73e1a Do you know of any silly errors I could be doing? Thanks in advance ,BuSheeZy
  6. Hi, i have question about data method. If i apply data before accepting offer and if this offer was escrowed, data will be available after 15 days in receivedOfferChanged? I want to save prices and some informations before accept and read it in receivedOfferChanged.
  7. Hello, My bot sometimes gets stuck at "Awaiting mobile confirmation", which is annoying for the customers who want to receive their items. I'm using the example code of steam-tradeoffer-manager on Github. Is there anything to do against this? Kind regards
  8. I need the app_data.def_index of the items i’m receiving or giving in a tradeoffer, but many times app_data is missing. I managed to get around this by editing checkNeededDescriptions()in classes/TradeOffer.js so it ignores the if(!manager._hasDescription(item))part and pushes the item anyway but i don’t think this is the right solution. Any help? I'm trying to get the def_index in a wrong way? Thanks
  9. Hi there. When I try to start tradeoffer-manager I have fail on login with error CAPTCHA. What is wrong?
  10. Hi, I recently got this error while restarting my bot: [Error: Access Denied]and before this I had Invalid Password for the steam ip timeout, this has now gone away except this error. There is not a problem with my code as this appeared after restarting a working bot. I expect that this is probably just steams restrictions of logins but I just need reassurance. Regards
  11. unknownOfferSent gets canceled automatically. Have a whitelist of Offer IDs to confirm via steam-community OR cancel confirmations for unknownOfferSent Offers. Have a light mode of the bot that will be memory efficient ? More to be added soon, just out of my mind!
  12. Hello, I have running MySQL database where I store partner SteamID, bot SteamID, partner Trade link and Items. Is that everything I need to create new offer with bot? I would like to get some example, please. Thanks.
  13. After some scalability issues with my site I decided to make the most of multiple cores and use Cluster to create many worker processes. It makes no sense to log in and poll on every worker process, so I would like to create and share a single instance of the Tradeoffer Manager between all workers. Is sharing a single instance Tradeoffer Manager the best way to do this? Are there any features of Tradeoffer Manager that would let me use multiple instances on every worker, but not waste resources logging in and polling on each one? If sharing a single instance is the best way to go, then what is a good way to be able to access it from the workers? I would rather use a callback-style interface if possible. Thanks in advance.
  14. When a trade is declined it spams trade state code like 2-6 times. Makes DB work shitty. Lol manager.on('sentOfferChanged', function(offer, oldstate){ if(offer.state == TradeOfferManager.ETradeOfferState.Countered){ offer.cancel(function(err){ if(err){ console.log('Unable to cancel offer:' + err.message); } else { db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Cancelled' WHERE `sTradeId` = '"+ offer.id +"'"); console.log('TradeID: '+offer.id+' has been cancelled due to countered!'); io.sockets.in(socket.room).emit('notifyUser', {'msg': 'Trade has been cancelled due to user sending counter offer!', 'status': 'Countered'}); socket.leave(socket.room); } }); } if(offer.state === TradeOfferManager.ETradeOfferState.Declined){ db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Declined' WHERE `sTradeId` = '"+ offer.id +"'"); console.log('TradeID: '+offer.id+' has been declined!'); io.sockets.in(socket.room).emit('notifyUser', {'msg': 'You have declined the trade!', 'status': 'Declined'}); socket.leave(socket.room); } if(offer.state === TradeOfferManager.ETradeOfferState.Accepted){ db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Completed' WHERE `sTradeId` = '"+ offer.id +"'"); db.query("SELECT * FROM `tTradeOffer` WHERE `sTradeId` = '"+offer.id+"'") .on('result', function(data){ db.query("UPDATE `tUserProfile` SET `decCurrentStar` = `decCurrentStar` + "+data.decTradeValue+", `decTotalStar` = `decTotalStar` + "+data.decTradeValue+" WHERE `sUserId` = '"+data.sUserId+"'"); }); console.log('TradeID: '+offer.id+' has been accepted!'); io.sockets.in(socket.room).emit('tradeCompleted', {'msg': 'Trade offer has been processed and Stars added to your wallet!', 'userId': offer.id, 'status': 'Accepted'}); socket.leave(socket.room); } if(offer.state === TradeOfferManager.ETradeOfferState.Canceled){ db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Canceled (Time Out)' WHERE `sTradeId` = '"+ offer.id +"'"); console.log('TradeID: '+offer.id+' has been canceled (Time Out)'); io.sockets.in(socket.room).emit('notifyUser', {'msg' : 'Trade has been cancelled due to it Timing Out!', 'status': 'TimeOut'}); socket.leave(socket.room); } });
  15. Hi there! I have few questiona bout your's node-steam-tradeoffer-manager api. For example, we have 2 steam accounts: user of my website and my bot. 1 step - user want to send his item to my bot and I want to put this into mysql, so user will create trade offer but how to automatically accept it as bot and make sql query? 2 step - second situation, bot have some item and I want to make trade offer for my user. How to do it? And I want to do sql query when the trade will be accepted by user. Best regards for you, Matt.
  16. Many of my time is spent trying to optimizing the bot to work with this awful service steam provides, Error codes like 16 and Error: ETIMEDOUT are some examples, however it is unknown if the offer is sent or not. Any experience anybody would like to share? Possible solutions? Also, when there's an error and the trade offer is sent means trade.id is true if it's false then surely the offer isn't sent? please check the code below: trade = offers.createOffer(p); trade.send('', t, function(err, status){ if(err){ console.log(err); if(trade.id){ console.log('Offer sent whilst having an error'); //Do something } else { console.log('Offer isn\'t sent'); } } else { //Do something } }
  17. Hello. I have a csgo jackpot site + auto trade bot. So here is the problem. 1.Bot is logged in: connected encrypt request handshake complete Logged in! 2.It seems that accepts trade on 50% maybe.. Accepted trade offer #1096969454 by kUc (76561198211580645) 3. Getting this error after that.. and its replying.. web authentication 403, retrying 4. When i check the steam site and the trade offers in bot acc, they are waiting for manyaly accpet maybe... So where shoud be the problem? I can provide the script if you know how to fix it. Also it's show in the site that the filex are deposited, act. show the deposited items, but the value of them is 0 ( bcs. bot not accepted the trade ) So thanks in advance for the help! Regards ! I can put the code here, if you want to see more of it.
  18. Error polling for trade offers: Error: getaddrinfo ENOTFOUND api.steampowered.com I set PollInterval to -1 but still got this error, is this error caught on the event 'error' ?
  19. When cookies get outdated, you will receive "Malformed response" error instead of some error saying 'hey, your cookies are not valid any longer, request new!'. This method opens new offer page and looks for js vars in html code, if your session is invalid, the steam will redirect you to login page instead of returning 401 unauthorized. I applied this simple fix on my and to prevent this: node-steam-tradeoffer-manager/lib/index.js in function _escrowDurationResponse, just after checking for HTTP errors if(response.request.uri.pathname === '/login/home/'){ callback(new Error('Unauthorized')); return; }
  20. I found in method loadUserInventory check for more_start. I know, early Steam get not full inventory. But now, i cant repeat this action. Even for inventory including 1000 items i receive full inventory on https://steamcommunity.com/profiles/STEAMID/inventory/json/APPID/CONTEXTID Steam canceled method more_start for load inventory?
  21. 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
  22. Player #1 send offer to receive items from player #2. player #2 open steam client and click on accept. Prior confirming this offer, is the offer state remains as active? since createdNeedsConfirmation works for player #1 as he is sending his items to player #2.
  23. Hello, sometimes when my sent offer is accepted, I am calling getReceivedItems method and array in "items" argument is empty. This offer is accepted and items are on bot. Why this is happening sometimes? I think that there is only way to fix this is create recalling of this method if array is empty with something like ~5 iterations.
  24. On my site i have a many query method loadUserInventory for different steamid. i wanna to make this method within proxy, coz for very frequent queries steam send error 429. How i can use proxy with u module?
  25. Hi, I would like to know what is the fastest way to get notifications from Steam. Should I use: "steam": client, or set pollInterval: "pollInterval": 1000 If so then how low can I go? Maybe both? Sorry if I said something incorrect.
×
×
  • Create New...