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. When accepting a trade, items change assetids. Comparing ItemsToReceive coming from a sentOfferChanged event with the actual items after they change inventories gives different results. Is there any way to find out a post-trade item's ID? Perhaps a way to detect incoming items and their sender / pertaining offer's id? Many thanks in advance.
  2. I want to re-login to steam every hour. Is it enough to call .weblogon() for that?
  3. Hi, I wrote my own library that interacts with Steam servers. My version of getConfirmations works fine with one bot. It runs periodically every 10 seconds with no issues. Today, I hooked it up with six bots running simultaneously. This is where errors 429 (too many requests) start happening. Seems like steamcommunity.com/mobileconf/conf has a rate limit: 6 requests per minute from the same IP. Am I right?
  4. Hi, I have a bot that accepts keys and does stuff with the partners name, steamid and amount of keys in the trade. Right now I am using the trade manager manager.on('newOffer') to decline offers with non key items and accept offers with only keys,and it works fine with offers that are made using trade offers. However, in test conditions I traded the bot a non key item in a normal trade and accepted my end of the mobile confirmations. Once I accepted the mobile confirmation on my end, the bot doesn't get receive a trade offer and insteads receives the items straight away, bypassing the newOffer event. I confirmed that it bypasses this and receives the item straight away by commenting out the newOffer listen, the bot still receives the items straight away. I can check if the trade is keys only in the real trade but how do I listen for the items being received from a mobile confirmed real trade, and can I get the partners information (steamid, name) from that? I hope I made it clear. Thanks.
  5. Hi, I am trying to use your library for a trade bot. Connexion works but the newOffer never emit. I started the bot, bought an item on opskins and waiting for some logs. Here is my code: 'use strict' var SteamUser = require('steam-user'); var TradeOfferManager = require('steam-tradeoffer-manager'); var client = new SteamUser(); var offers = new TradeOfferManager({ steam: client, domain: "localhost", language: "en", pollInterval: 10000, cancelTime: 300000 }); client.logOn({ accountName: "**account**", password: "**password**" }); client.on('loggedOn', function (details) { console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID()); }); client.on('error', function (e) { console.error(e); process.exit(1); }); client.on('accountLimitations', function (limited, communityBanned, locked, canInviteFriends) { if (limited) { console.warn("Our account is limited. We cannot send friend invites, use the market, open group chat, or access the web API."); } if (communityBanned){ console.warn("Our account is banned from Steam Community"); } if (locked){ console.error("Our account is locked. We cannot trade/gift/purchase items, play on VAC servers, or access Steam Community. Shutting down."); process.exit(1); } if (!canInviteFriends){ console.warn("Our account is unable to send friend requests."); } }); offers.on('newOffer', function (offer) { console.log("New offer #"+ offer.id +" from "+ offer.partner.getSteam3RenderedID()); if (offer.itemsToGive.length === 0) { console.log("User "+ offer.partner.getSteam3RenderedID() +" offered a valid trade. Trying to accept offer."); offer.accept(function (err) { if (err) { console.error("Unable to accept offer "+ offer.id +": " + err.message); } else { console.log("Offer accepted"); } }); } else { console.log("User "+ offer.partner.getSteam3RenderedID() +" offered an invalid trade. Declining offer."); offer.decline(function (err) { if (err) { console.error("Unable to decline offer "+ offer.id +": " + err.message); } else { console.debug("Offer declined"); } }); } }); offers.on('receivedOfferChanged', function (offer, oldState) { console.log(offer.partner.getSteam3RenderedID() +" 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.error("Couldn't get received items: " + err); } else { var names = items.map(function(item) { return item.name; }); console.log("Received: " + names.join(', ')); } }); } });
  6. Hi, I made this code to send offer but the problem that I got that error "Error: HTTP error 401" When I using "manager.setCookies" I got the error access denied because my limited account . So I looked for another module "node-steam-tradeoffers" and it's working with "steam-weblogon" and "steam-web-api-key" and it's send the offers from my limited account, but I need to using your module, so I made this code which can make the api key. var Steam = require('steam'); var SteamWebLogOn = require('steam-weblogon'); var getSteamAPIKey = require('steam-web-api-key'); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var TradeOfferManager = require('steam-tradeoffer-manager'); var fs = require('fs'); //var client = new SteamUser(); var community = new SteamCommunity(); var steamClient = new Steam.SteamClient(); var steamUser = new Steam.SteamUser(steamClient); var steamFriends = new Steam.SteamFriends(steamClient); var steamWebLogOn = new SteamWebLogOn(steamClient, steamUser); var manager = new TradeOfferManager({ "steam": steamClient, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "localhost", // Our domain is example.com "language": "en" // We want English item descriptions }); if (fs.existsSync('polldata.json')) { manager.pollData = JSON.parse(fs.readFileSync('polldata.json')); } steamClient.connect(); steamClient.on('connected', function() { steamUser.logOn({ account_name: '*********', password: '***********', two_factor_code: SteamTotp.generateAuthCode('**********************') }); }); steamClient.on('logOnResponse', function(logonResp) { if (logonResp.eresult == Steam.EResult.OK) { console.log('Logged in!'); steamWebLogOn.webLogOn(function(sessionID, newCookie) { getSteamAPIKey({ sessionID: sessionID, webCookie: newCookie }, function(err, APIKey) { manager.apiKey = APIKey; var offer = manager.createOffer("************"); offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "655530455"}); offer.send(function(err, status) { if (err) { console.log("send" + err); } else { console.log("Offer #" + offer.id + " " + status); } }); }); community.setCookies(newCookie); community.startConfirmationChecker(10000, '*********************************'); }); } });
  7. Hello, I would like to try to create steambot using your nice manager. I have read examples, there are only confirmation described, but I want to make bot, that will send tradeoffers by him self. Could you say, is there any example or describe implementation of this construction in short? I have found ('../lib/classes/TradeOffer.js') but how can I call function send(), should I require it from my file or just require ('../lib/index.js') etc?
  8. How do I achieve 24/7 uptime? My bot will sometimes stop responding to requests due to 400 and 500 errors, what even must I listen on to relog? I am using tradeoffermanager (client steam user), and steam community to poll for confirmations. Right now, I restart the process every 1 hour to make sure the bot doesnt get stuck with these http errors. Thanks if you can help me. I love your work.
  9. Hello, Someone can help me with this error? " Error: HTTP error 429 ". Print: http://imgur.com/a/cYHEM Code: client.on('loggedOn', function(details){ client.on('webSession', function(sessionID, cookies){ manager.setCookies(cookies, function(err) { if(err) { console.log('setCookies error: '+err); process.exit(1); // Fatal error since we couldn't get our API key return; } var steamapi=manager.apiKey; var SteamcommunityMobileConfirmations = require('steamcommunity-mobile-confirmations'); var steamcommunityMobileConfirmations = new SteamcommunityMobileConfirmations( { steamid: botsteamid, identity_secret: identitysecret, device_id: deviceid, webCookie: cookies, }); setInterval(function(){ checkConfirmations(steamcommunityMobileConfirmations) }, pooling_interval); console.log("[SERVER] The Bot has logged in!"); client.addFriend(admin); client.chatMessage(admin, "[SERVER] Successfully logged in!"); client.setPersona(Steam.EPersonaState.LookingToTrade); }); }); }); Regards.
  10. Hi, I've been using node-steam-tradeoffer-manager flawlessly for months, and I'm suddenly running into trouble, with my script accepting offers continuously, but it seems unable to confirm afterwards. Gift offers are accepted as usual, but all offers requiring confirmation are stuck. I checked manually using Steam Desktop Authenticator, and the "Trade Confirmations" window is stuck, either unable to load pending confirmations, or loading a buggy shitload of confirmations. Anyone experiencing such a behavior ? Steam related ? Thx for any input :-) Happy botting !
  11. Please make event 'sessionExpired' when error 'Malformed response' on making trade offer
  12. Hello. I want to do two steam account (at the beginning) working on 1 database. Better to do it in two separate processes? What kind of problems to pay attention?
  13. Hey.. If I try to send a offer to someone (with his steamid + token) I'm getting the error: Error: There was an error sending your trade offer. Please try again later. (15). If I add him as friend, all is working fine. Trade with the browser or the steam client is working fine without having him as friend. The token is correct: example from the wiki: var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=46143802&token=KYworVTM");// SteamID and trade token both provided Error if I using this: throw new Error("Unknown SteamID input format \"" + input + "\""); If I use this: var offer = manager.createOffer(new TradeOfferManager.SteamID("76561198006409530"), "KYworVTM"); // trade token provided I get the problem with sending the trade offer. I tryed this with different tradeoffer-links and it's not working. Token is 100% correct.
  14. Hello, I just started to use node-steam-tradeoffer manager. I installed node modules and wanted to run example (storehouse-steam) but it trow err. In the storehouse-steam.js I filled accountName and password (they are correct). It didnt send me code to the email. How should I fill "twoFactorCode": SteamTotp.getAuthCode("sharedSecret") if it needed and what else should I fill in this file? Thanks. var SteamUser = require('steam-user'); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var TradeOfferManager = require('../lib/index.js'); // use require('steam-tradeoffer-manager') in production var fs = require('fs'); var client = new SteamUser(); var manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "example.com", // Our domain is example.com "language": "en" // We want English item descriptions }); var community = new SteamCommunity(); // Steam logon options var logOnOptions = { "accountName": "acname", "password": "mypassword", "twoFactorCode": SteamTotp.getAuthCode("sharedSecret") }; if (fs.existsSync('polldata.json')) { manager.pollData = JSON.parse(fs.readFileSync('polldata.json')); } client.logOn(logOnOptions); client.on('loggedOn', function() { console.log("Logged into Steam"); }); client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); }); community.setCookies(cookies); community.startConfirmationChecker(30000, "identitySecret"); // Checks and accepts confirmations every 30 seconds }); manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID()); offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer console.log("Offer accepted"); } }); }); manager.on('receivedOfferChanged', function(offer, oldState) { console.log(`Offer #${offer.id} changed: ${TradeOfferManager.ETradeOfferState[oldState]} -> ${TradeOfferManager.ETradeOfferState[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(', ')); } }); } }); manager.on('pollData', function(pollData) { fs.writeFile('polldata.json', JSON.stringify(pollData)); });
  15. I have 4 bots running with the trade offer pollInterval running at 2 seconds and im getting this error on all my bots after running them for like 2 min and i dont know what other loops im running that will do this besides a couple loops running in my db and the trade offer is the only one i can think of and ive tried rasing the loop to 5 sec and still didn't work
  16. So which node js packages do i need to communate with the site, i wanna make a system like on big sites such as csgopolygon, csgodouble.And how hard is it to code?
  17. I'm using a bot for a jackpot site, and when it accepts a trade sometimes the bot will return an error upon accepting a trade, however the trade is accepted anyway, meaning the bot gets the items but they do not go in to the pot. How can I fix this?
  18. Prompt please a script by means of which it is possible to accept automatically empty offers (to whom I give nothing in exchange). I think a script will be very simple, but I don't understand it at all. It is necessary that the script scanned, for example time in 10 seconds, available offers and accepted them if nothing is necessary in exchange. Whether it is possible to make it by means of this bot? Two-factor authentication is, but whether it is necessary in this case for offers or only to log in?
  19. So my end goal is to get the item market_names from a trade, get the price of each item using steamlytics, add it together, then compare itemsToGive and itemsToReceive and have the bot accept the trade based on whether its + or -. First is what im trying to do possible using tradeoffer-manager and steamlytics? My problem is I cant figure out a way to get just the market names of each item. Im able to get 1 if im only sending one item. It seems like itemsToGive and itemsToReceive return an array that has each item as an object with the info about the items as properties of the object. What do I need to do to get the specific "market_name" property out of the array? Ive tried various for and foreach loops but nothing im doing is giving me the output Im wanting. Any guidance or a way of doing this thats easier than im making?
  20. Hello guys im new in this forum and need your help, I want to create a node bot that accept all offers in wich i dont give anything , like donation from others and it write me on steam the steam market price . is that possible ?
  21. I have configured my bot to generate the steam guard app code for the login method. Everything seems fine, but then after a while the bot asks for the code again. Is there a listener for this?
  22. Hi everyone i have been using steamcommunity, steam-user, steam-totp and steam-tradeoffer-manager for my bot (it is a card trading bot) This morning i opened to check if the bot missed some of the trades on the trade offers page and i got a captcha there saying that im requesting the trade offer page a lot of times. my bot is set to check for trades each 45 seconds, and confirms each 45 seconds, and after that it does a 5 minute check up (just in case it missed some of the trades) did anyone had similar issues? Screenshot http://i.imgur.com/fqmbpt0.jpg I did the captcha and increased the bot times (slowed it down) , and after 5 minutes the same thing appeared, im using enhanced steam and steam inventory helper. but that thing appeared when i opened the browser. So did anyone had similar problems? should i be worried. I shut it down for a while
  23. Greetings, Is there any way to fetch contextIDs from Spiral Knight user inventories? I'd give more information, but there's really nothing more to it. If it could be possible, I'd like to load user inventories from Spiral Knights in order to implement trades for it, however this specific game's contextids are quite dynamic and I'd need to know them for to load inventories, or some range to test from, whatever way would make this possible. Many thanks for your attention.
×
×
  • Create New...