Jump to content
McKay Development

Search the Community

Showing results for tags 'node.js'.

  • 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, im going to backup my server and also the bot i've made, so i just need to know where it is located, thanks My OS: CentOS 7 node-steam-tradeoffer-manager
  2. 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?
  3. Hi guys, can you tell me what exactly following errors means? I get them in sessionExpired callback: Error: HTTP error 504Error: HTTP error 503Error: HTTP error 502Is there any difference between them? I'm asking, because it seems to me that sometimes when I got this 'sessionExpired' event session is don't really expired. Thanks
  4. When accept TradeOffer, error occurs "Unknown state 2" Log from my bot: darkwar1234: Logged On darkwar1234: new trade offer from 76561198052220848 darkwar1234: Unknown state 2 darkwar1234: cookies are updated! darkwar1234: trade offer â„–1150955479, status: 3 darkwar1234: trade offer are accepted!Code: offer.accept(function(err){ if(err){ // here console.log(err.message) "darkwar1234: Unknown state 2" self.relogin(err, function(){ self.checkOffer(offer, function(offer){ if(offer.state == 3){ self.acceptOffer(trade, callback); }else if(offer.state == 2){ self.handleOffer(trade, callback); } }); }); return; } self.acceptOffer(offer, callback); });And when I use method TradeOffer.update() it receive undefined if I make offer now or if TradeOffer has status 3 it show error Offer no longer valid. I want to use this method instead getOffer in this part of code: SteamBotManager.prototype.checkOffer = function (offer, callback) { var self = this; self.manager.getOffer(offer.id, function(err, offer){ if(err){ self.relogin(err, function(){ self.checkOffer(offer, callback); }); return; } if(offer.state == 2 || offer.state == 3){ self.log("trade offer â„–"+ offer.id +", status: "+ offer.state); if (typeof(callback) === 'function') { callback(offer); } }else{ self.log("trade offer â„–"+ offer.id +" is no longer valid, status: "+ offer.state +"!"); } }); };
  5. I want/try to start a discussion to collect ideas and experience which is the best way to load user inventories fast and preferably unlimited for web bases item select masks. For myself, I 've just read that one needs a lot of ip addresses to pass as proxy for example as described in this post https://dev.doctormckay.com/topic/176-loadinventory-proxy/ I imagine the following questions ? What are the limits to request inventories (x request per hour, or day) ?should i use a caching strategy (which is recommended, just time based, how long) ?if proxys are the only way is there a recommended hoster, eg.is it possible to request the inventory cross site based with javascript in browser (so that customer client ips are used), iframe, etc.... Are there any other strategys? Hope this post can help others and me to handle this problem.
  6. Hi, I'm currently asking on behalf of my coder who is not really good with English. He has trouble getting items being displayed on the website when the bots received them. The NodeBot is working fine and is able to trade items back and forth with me. Now once I've deposited the items on the bots, I'm trying to get it linked to my website inventory which belongs to mine account when I signed in through steam, showing my "web" inventory which I have deposited with the bots. I read on google about storing it in a database, doing array etc. And something about connecting the Nodebot to the website through socket.io, I'm not familiar with all these as I'm not a coder. Any help would be appreciated. Thanks
  7. i'm using following code and my confirmation still says "waiting for mobile confirmation" var SteamCommunity = require('steamcommunity'); var SteamCommunity = new SteamCommunity(); var SteamTotp = require('steam-totp'); var logOnOptions = { 'accountName': "winiar23", 'password': "zaqwsxcde", 'twoFactorCode': SteamTotp.generateAuthCode("XXXXXXXXXXXXXXXXXXXX=") //this line and the comma before it can be removed if you don't have mobile auth enabled, but I'm assuming you do if you plan to trade }; var s = 'XXXXXXXXXXXXXXXXXXXXXX='; //get this in the intro! //logs in via browser SteamCommunity.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("There was an error logging in! Error details: " + err.message); process.exit(1); //terminates program } else { console.log("Successfully logged in as " + logOnOptions.accountName); SteamCommunity.chatLogon(); } SteamCommunity.startConfirmationChecker(12000, s ); });
  8. Is there a way that I can intentionally make offer.send() returns an error?
  9. Hello there, So I am having poll failure error according to my logs and my bot does nothing after poll failure, even though it accepted the trade offer. Here is the issued logs, {"level":"debug","message":"#1 - Received new offer: - 1146841042","timestamp":"2016-04-10T03:26:01.792Z"} {"level":"debug","message":"#7 - Offer # - 1146841042 accepted from 76561198074956634","timestamp":"2016-04-10T03:26:12.168Z"}{"level":"debug","message":"!! POLL FAILURE ERROR !!: Error: Timeout","timestamp":"2016-04-10T03:26:14.464Z"}
  10. .getReceivedItems sometimes messes up with a 503 error is there anything i can do so that i can retry or make it try again on the 'receivedOfferChanged' condition?
  11. Hello, There is a method isGlitched(). If this method return true how to "reload" the offer to make it "not glitched"? Best wishes, Gleb
  12. 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?
  13. 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
  14. Hi, In the node-steam-user documentation under "getProductChanges" it states to get all product changes set sinceChangeNumber to 1. However when I try it out Steam only returns the current change number (currentChangeNumber) and no apps or packages. I'm just wondering if this is a change on Steam's behalf, restricting how far we can look back on the change list, or if there's a fix? You can also see an example of what I'm talking about here on the hosted express app - https://steampics-mckay.rhcloud.com/changes/1 Thanks!
  15. Hi, I'm trying to login using the loginKey. When I login the first time, the event is triggered normally so I can get the loginKey and store it somewhere. When I try to login for the second time, I seek if I have some loginKey, if found I pass it to the details object but I get the following error: Error: Illegal value for [object Object] of type string: object (not a string) Follow a snippet of my testing code: https://gist.github.com/williamokano/2b5c858e738a7829b6481095fb5deb30 And here is the stack trace https://gist.github.com/williamokano/fbd64eb8b3aec7bf8c50d7a7e12d0177
  16. Hello, Dr. McKay I keep getting [Error: Steam returned unsuccessful response] when making getReceivedItems. But when I open receipt link in the browser(http://steamcommunity.com/trade/<TRADE ID>/receipt) it works: Best wishes, Gleb
  17. I'm currently writing a bot management system and stuck on disconnecting bots. Whenever I call logOff() function, I get an error that crashes my application. events.js:276 throw new TypeError('listener must be a function'); ^ TypeError: listener must be a function at CMClient.removeListener (events.js:276:15) at SteamUser.logOff.SteamUser.disconnect (E:\Projects\steam-bot-manager\node_modules\steam-user\components\logon.js:151:14) ... The line 151 of logon.js is: this.client.removeListener('connected', this._onConnected);Any ideas why this happens? P.S. I already tried handling 'error' and 'disconnected' events. No success.
  18. I see this error by the first time, steamcommunity display error.message: Not Logged In, when I try to get page with my trade offers. I don't know why it's happen but after about an hour this error disappears. And one more notice, bot can accept offers but can't send it (error 503 as Not Loged in).
  19. Hi, when I use GetPersonas there's a possibility that the requested data would be unavailable. Unfortunately there's no error callback. How can I check it? I mean something like this: if (GetPersonas is unavailable) // do something...
  20. Hi there. There is a way to avoid the client asking the steamguard code every time I try to login? Thanks. PS.: excerpt of my code https://gist.github.com/williamokano/0554b2d027219b14de3ef07add6585e3
  21. Hi people. I have some questions about all modules. 1. Are modules very important? 2. Can i make a bot without modules? 3. If the answer is Yes. It's very hard to make a bot without them? 4. What is the function of modules? Thanks for all! Have a good one.
  22. offer.getEscrowDuration(steamid,usertoken, function(err, their,main){get callback(null, parseInt(theirs[1], 10), parseInt(mine[1], 10)); ^ TypeError: callback is not a function at String.TradeOfferManager._escrowDurationResponse (D:\STARTBOT\node_modules\steam-tradeoffer-manager\lib\index.js:214:3) at Request._callback (D:\STARTBOT\node_modules\steamcommunity\components\http.js:62:14) at Request.self.callback (D:\STARTBOT\node_modules\request\request.js:200:22) at emitTwo (events.js:100:13) at Request.emit (events.js:185:7) at Request.<anonymous> (D:\STARTBOT\node_modules\request\request.js:1041:10) at emitOne (events.js:95:20) at Request.emit (events.js:182:7) at Gunzip.<anonymous> (D:\STARTBOT\node_modules\request\request.js:968:12) at emitNone (events.js:85:20) and function offer.getEscrowDuration(function(err, daysTheirEscrow, daysMyEscrow) { processed in 3 seconds,how can it accelerate ?
  23. Hi there. I have problem with sending offer from my bot using tradeoffer-manager, when I try to send some offer only with my items I have status pending. On steam in sent offers I see 'Awaiting for mobile confirmation'. What is wrong? I have turned on 2FA and i'm logged in steam with my bot. My code: var offer = manager.createOffer("[U:1:123456789]"); offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "1234567890"}); offer.send("Lorem ipsum...", "12345678", function(err, status) { if (err) { console.log(err); } else { console.log("Offer #" + offer.id + " " + status); } });
  24. 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?
×
×
  • Create New...