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. 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?
  2. 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!
  3. .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?
  4. Hello, There is a method isGlitched(). If this method return true how to "reload" the offer to make it "not glitched"? Best wishes, Gleb
  5. 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
  6. 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).
  7. Is there a way that I can intentionally make offer.send() returns an error?
  8. 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.
  9. 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
  10. 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.
  11. 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
  12. 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 ?
  13. 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?
  14. After around 50 hours of my server starting I get 'Error: Not Logged In' when trying to send trade offers, I would assume this is because Steam has let my cookies expire (or just killed them because they hate me). Is there a way to detect when the session is no longer valid so I can create a new one? or is it better to refresh them on a timer every hour or so? (I am using node-steamcommunity) Thanks in advance.
  15. I'm writing "npm install steamcommunity" and "npm steam-tradeoffer-manager" in the cmd but i have a little problem: http://i.imgur.com/FMtt4PX.jpg Is that normal? If not, how can i fix that? I'm following charredgrass tutorial. Sorry for bad english.
  16. Got this little gem today from TradeOffer#getReceivedItems { "id": "5688498100", "owner": "...", "classid": "1618444825", "instanceid": "188530170", "name": "", "pos": 1, "appid": 730, "contextid": "2", "amount": 1, "is_stackable": false, "assetid": "5688498100", "fraudwarnings": [ ], "descriptions": [ ], "owner_descriptions": [ ], "actions": [ ], "owner_actions": [ ], "tags": [ ], "tradable": false, "marketable": false, "commodity": false, "market_tradable_restriction": 0, "market_marketable_restriction": 0 }Has anyone seen this before? How can we identify that the item is malformed? I'm just going to check for a missing market_hash_name since that's all I need, hopefully there is a way to know for sure.
  17. i have the problem, that my bots will stop confirming trades (mobile auth) when they are running for a while. it is completed random, the bots can work for hours sometimes even days without problems and then they will stop to confirming the mobile auth trades. when i shutdown the bots and start them again, then they will confirm the open mobile auth confirmations. so it looks like that the steam servers are not answering or answering with an error or something? is there an debug function, so that i can see an error message why they stop confirming the trades? thank you!
  18. I'm using getReceivedItems method, but sometimes it keeps returning error. What should I do if bot accepts the offer and I need to know what items bot received but getReceivedItems return error?
  19. 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); } });
  20. Hello, how do I set bot's persona or gamesPlayed using steamcommunity? I was using steam-user all the time and it was working, but I need to switch to steamcommunity since I need to confirm trade offers. This is my bot login script: var BotID = 1; var Steam = require("steam"); var SteamTotp = require('steam-totp'); var SteamCommunity = require("steamcommunity"); var sclient = new SteamCommunity(); // var ACC_NAME = "username"; var ACC_PSW = "password"; var ACC_SHARED = "shared_secret"; var ACC_IDENTITY = "identity_secret"; var loggingIn = 0; login(); function login() { loggingIn = true; logger.info("Logging into steam..."); sclient.login({ "accountName":ACC_NAME, "password":ACC_PSW, "twoFactorCode": SteamTotp.getAuthCode(ACC_SHARED) }, function(err, sessionID, cookies, steamguard){ loggingIn = false; if(err) return login() //re-login console.log("Bot has logged in."); //====SET PERSONA STATE HERE // }); } sclient.on('sessionExpired',function(err){ if(loggingIn) return; logger.log("Session expired! Trying to re-log"); return login(); }); And I'm not sure how to set state to "Online".
  21. How low can I put the value on confirmationChecker before Steam starts to limit the requests?
  22. Hello, As you might know, steam has a limit on their API (100,000 calls per day is possible). I tried getting player's inventory just by using a simple xml request to this url: steamcommunity.com/profiles/[iD]/inventory/json/[APP]/2 I set an interval for the requests, and my script crashed after 30 requests (I think) so there must be a maximum requests per minute. However, if players in my website try to access inventory, and I have a lot of players = not good. So my question is, is there a limit of requests using loadInventory (loading bot's inventory) and loadPartnerInventory (loading player's inventory)? Thanks
  23. 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?
  24. 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ő
×
×
  • Create New...