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. Here is my current Code http://pastebin.com/0Ezn6rNY So far everything works, however I'm wondering, how do I check if a trade has been acceppted? I want to make it so I can do something like php code: 'socket.emit("getTrade", tradeid)' nodejs code: 'socket.on('getTrade', function(steamid, tradeid) {' GET TRADE STATUS HERE '}' But i also want it so the bot automatically polls and checks the trade status so if the trade gets acceppted/declined the node js bot will do something (I want it so this doesn't require me to send getTrade to the bot and it just automatically checks if the bot acceppts so the bot can update sql records without having to keep clicking 'check trade') so how shall I get the bot to automatically check if a trade has been acceppted after sending? I've had a look at the documentation and I still couldn't seem to get it, so help would be appreciated
  2. Hey, I am wondering what the best way to detect for invalid cookies is. Detecting Invalid cookies: In the past I have been using node-steam-tradeoffers so if I sent a tradeoffer that returned status 403, I would get new cookies and then resend the tradeoffer. This is the code that I have at the moment: client.logOn(logOnOptions); client.on("webSession", (sessionID, cookies) => { manager.setCookies(cookies, (err) => { if (err) { console.log(err); } }); What is the best way to detect and replace invalid cookies? Thanks
  3. Any specific format this date object needs to be in? I was to set "cancelTime": 5*60*1000 Also I tried doing it manually by passing a date object set 5 minutes in the future (my timezone is GBT+3). After sending the offer and fetching offer.expires the time is correct but 14 days in the future. Any ideas what might cause this?
  4. It seems all csgo items have instance ids unique to their types such as all keys have the instance id of "143865972" and all R8 Revolver | Bone Mask (Well-Worn) have an instance id of 302028390. How would I get this info from a trade offer?
  5. When I send an offer from the bot to the user and the user accepts and confirms with the mobile the bot's account receives the item but no event is launched on bot. Polling Data manually every 2 seconds shows that the offer is shown in pollData in state 2 still. Also no other events seem to work for me (EG: .on("debug",console.log) ). Can I have made a mistake that crashed the events? My code looks something like this console.dir("logged"); var manager = new SteamTrades({ "community": bot.community, // Polling every 30 seconds is fine since we get notifications from Steam //"domain": "example.com", "pollInterval": 5000, "language": "en" // We want English item descriptions }); manager.on('sentOfferChanged',function(offer, oldState) { console.dir("sentOfferChanged"); console.dir(offer); }); manager.on('pollFailure',function(err){ console.log("failed to poll"); console.log(err); }); manager.on('pollData',function(pollData){ console.log("pollData ",pollData); }); manager.on('debug', console.log); live_bots[bot.index].manager = manager;
  6. getUserDetails(callback) is it possible to add the avatar url to this? I believe you do get this in the response.
  7. File "cellid-XXX.txt" contains id of machine on which bot is turned on, am I right? If yes then does it have any connection with steam-tradeoffer-manger? Is it possible to manipulate with id generating?
  8. Hello, I need change other ip and have problem: ... var steamClient = new SteamClient.CMClient(); BOT.ip = 'XXX.XXX.XX.XX'; console.log(colors.green('Bind ip: '+BOT.ip, 'steamClient')); steamClient.bind(BOT.ip); steamClient.connect(); steamClient.on('connected', function(){ var user = new SteamUser(steamClient, { dataDirectory: __dirname, singleSentryfile: true, promptSteamGuardCode: false, enablePicsCache: true }); var community = new SteamCommunity({ timeout: 30000, userAgent: 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', localAddress: BOT.ip }); var TradeOfferManager = new clearTradeOfferManager({ steam: user, community: community, domain: BOT.username, language: 'pl', pollInterval: 1000, cancelTime: 600000, cancelOfferCount: 16, cancelOfferCountMinAge: 300000, globalAssetCache: true, pendingCancelTime: 32000 }); ... Is this correct? When running 100 bots, on 100bots/ip, 60th bot received error HTTP error 429. When running 100 bots, on 25bots/ip, 60th bot received error HTTP error 429.
  9. Hello! I keep getting an error when I'm doing: manager.getEscrowDuration('76561198016511109', 'EMv1iKH8', function(err, daysTheirEscrow, daysYourEscrow) { if(err) console.log(err); }); And getting: Error: This Trade URL is no longer valid for sending a trade offer to noname. But the funny thing is that https://steamcommunity.com/tradeoffer/new/?partner=324417112&token=EMv1iKH8 tradeurl works fine What am I suppose to do? Thanks!
  10. Sometimes i get value of getReceivedItems empty. How to recheck this value?
  11. Bot worked fine all time, but today i have error: { [Error: HTTP error 429] code: 429 }, when bot are trying to login. Error throw on manager.setCookies. I tryed start bot from other ip. similar result. Why?
  12. Hello, When does "Error: HTTP error 403" appear? My bots issue those errors really often while trying to send a trade offer. Is it some kind of Steamism again or could be something wrong with my code?
  13. I know how to get inventories from games but I can't seem to find out how I can load my Steam Inventory......
  14. Hello. How i can get items name in : manager.on('newOffer', function(offer) { // my code below, i'm try but not working for (var i = 0; i < offer.itemsToReceive.length; i++) { console.log(offer.itemsToReceive[i].market_hash_name); } });I'm got "undefined" in console, so?
  15. Hi guys! I have a problem when i get callback on webSession event, few days ago everything works fine, but now when i try to execute my node js file and got message from my logger: Unable to set trade offer cookies: Error: HTTP error 429. What can be wrong? So trade offer manager sent too many requests to steam and after 5-7 seconds we have 429. client.on('webSession', function (sessionID, cookies) { client.setPersona(SteamUser.Steam.EPersonaState.Online); offers.setCookies(cookies, function (err){ if (err) { logger.error('Unable to set trade offer cookies: '+err); process.exit(1); } }); }); In cookies i receive an array with next data: sessionid, steamLogin and steamLoginSecure. Any idea?
  16. Hello there! I have a trouble. My account can't generate API'keys, so i was edited index.js from steam-tradeoffer-manager folder, and i found this.apiKey = null and changed it to this.apiKey = options.apiKeyand in my js script i'm use this: var manager = new TradeOfferManager({"domain": "example.com", // Our domain is example.com "language": "en", // We want English item descriptions "apiKey": "myAPIKEY", "pollInterval": 5000 // We want to poll every 5 seconds since we don't have Steam notifying us of offers });Now, i can run my script without errors. For debug i use steam.on('debug', console.log); manager.on('debug', console.log);After the start script i'm send some offerts to my "bot". And bot can't detect these offers. And i haven't errors in logs. So what i can do with that? I got this in console:
  17. If i pass a node-steamcommunity instance in the constructor of the trade offer manager and then i set the cookies of the manager, does the community cookies are also set, or do i need to call setCookies for the community too ?
  18. I just updated steam-tradeoffer-manager and after update i am getting this error. I updated because someone told me that will solve my problem which i have with trades. Not offten but it will happen few times on day.
  19. My bot is often getting "Error: There was an error sending your trade offer. Please try again later. (15)" after last update of node-steam-tradeoffer-manager. By often I mean like 85% of trades which he's trying to send. What am I doing wrong?
  20. Hi guys i'm use getReceivedItems method, but sometimes it return error, i try to try again in 1 second, but it doesn't give a result. What i must do?
  21. sentOfferChanged listener don't trigger on mobile confirmation state. Scenario: - Send trade offer from bot (offer is with status Active) - Log in to steam as User and Accept offer -> receive message "You have to confirm in mobile app" -> offer state should be OfferNeedMobileConfirmation but sentOfferChanged don't do anything. With receivedOfferChanged everything works just fine the problem is only with sentOfferChanged.
  22. Hello. First, I would like to thank you, Doctor McKay, for such incredible Node module. Currently, I understand that trading via Trade URLs aren't possible with a limited account using this module, which is based on Node Steam by seishun. Is it possible to trade with this module or seishun's Node Steam using Trade URLs and a limited account? Or at least trade somehow but still with a limited account? Thanks!
  23. I am wondering how to get offer in later stage. Is there some call that I can make to retrieve offer based on offerId or something else? For example I want to Cancel specific offer at some point in time. What i do now is to add all offers in array and get offer from array based on key(offerId) but when i restart my node.js i loose all offers in that array. Also is there something like Resend offer? Thanks.
  24. Hi there At first thnx for the awesome wrapper around the steam trade offers! I have encountered an issue with creating tradeoffers, accepting works like a charm! When i try to create and offer, add items to it and send, i don't receive any feedback err and status are undefined. If i log the tradeoffer all is set, what am i missing? Thnx in advance! steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("Steam login fail: " + err.message); process.exit(1); } fs.writeFile('steamguard.txt', steamguard); console.log("Logged into Steam"); 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); // var inventory = manager.loadUserInventory("*****", 730, 2); // console.log(inventory); var offer = manager.createOffer("****"); offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "6582251698"}); offer.send(function(err, status) { if (err) { console.log("send" + err); } else { console.log("Offer #" + offer.id + " " + status); } console.log(status); console.log('hierheirieirh'); }); }); console.log('testtest'); // Checks and accepts confirmations every 30 seconds steam.startConfirmationChecker(30000, config.identity_secret); });
×
×
  • Create New...