Jump to content
McKay Development

Search the Community

Showing results for tags 'node.js'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL




Found 1385 results

  1. i have windows and i test it and runs all ok but when i want to use centos 7 to run it on my server it does not work!! steam-user client.logOn does not give me error and do nothing it is so weird i have tried it into 4 different linux servers still the same what do you think the problem is? my code : const SteamUser = require('steam-user'); var client = new SteamUser(); client.logOn({ accountName: 'test', password: 'tes',}) client.on('loggedOn', () => { console.log('logged on'); }); client.on('error', (err) => { console.log(err); });
  2. I have several questions that I have been looking for an answer for a long time. Some of my questions are more for a node js, sorry for that. And thanks in advance for your help! 1: If I need to decline/delete incoming offers that were not accepted in 10 minutes, would this be the right? Maybe there are any cases, why can it be a bad option? manager.on("newOffer", (OFFER) => { setTimeout(function() { OFFER.decline(); }, $MINUTE * 10); 2: I have to save completed trades. If not - sometimes some of them work 2-3 times. Why? // "pollInterval": "10000", // "dataDirectory": "./pool_data", // "savePollData": true var completedTrades = []; manager.on("sentOfferChanged", (OFFER) => { if (completedTrades.indexOf(OFFER.id) >= 0) { console.log("aborted"); return; } if (OFFER.state == 3) { completedTrades.push(OFFER.id); console.log("completed"); //Log: completed aborted aborted 3: In some trading offers I add data: trade.data("somedataname", myvar.toString()); After i check it this way (Is this correct or can it be different?): manager.on("sentOfferChanged", (OFFER) => { if (!!OFFER.data("somedataname")) { console.log("trade with somedataname"); 4: If I want to make a counter offer to a user (not on the list of friends) - will it work as I am create a new offer? manager.on("newOffer", (OFFER) => { let trade = OFFER.counter(); trade.getUserDetails((ERR, BotDetails, UserDetails) => { OFFER.itemsToGive = []; OFFER.itemsToReceive = []; //... add items trade.send((ERR) => { 5: How can I use more than 1 appid / txid? manager.getUserInventoryContents(SENDER, 753, 6, true, (ERR, USERINVENTORY) => { Here I will get only Steam (753-6); What should I do to add for example TF items (440-2)
  3. Hi, when i using method community.editProfile - it remove my background if it exist
  4. Is there a way to fetch certain data like the Steam Profile Name and Steam Avatar, if the Profile is Public, Steam Level, Ability to Invite Friends etc. and fetch it from Steam via Steam-User or is that something I would have to do without Steam-User via Steam Web API?
  5. Hi, How can I find out that a friend has blocked me? client.myFriends[user_id] = 3 , but on account who blocked this value = 6
  6. Sometimes pollFailure event is emitted and gives the error below. { Error: socket hang up at createHangUpError (_http_client.js:323:15) at TLSSocket.socketOnEnd (_http_client.js:426:23) at TLSSocket.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) code: 'ECONNRESET' } My script is running on AWS. So there shouldn't be any issues with the network.
  7. Hey, i read all post at this forum about this issue. https://dev.doctormckay.com/topic/2128-error-when-using-loginkey/?hl=loginkey https://dev.doctormckay.com/topic/1896-loginkey-throw-error-invalidpassword/?hl=loginkey https://dev.doctormckay.com/topic/2120-using-loginkey-gives-error-invalidpassword/?hl=loginkey https://dev.doctormckay.com/topic/2264-what-data-must-be-stored-for-reauthorization/?hl=loginkey&do=findComment&comment=7443 I can't login with loginKey on my VDS based on Linux. I am updating loginKey every time when receive new one from Steam. All working fine at my local Windows machine. So i tryed use Windows VDS - all working fine. Is there any bug on Linux? Can that be that when i use steam-user at linux it won't use sentry files. That can explain why loginKey don't work. I found folder where sentryes stored at Linux and tryed to manualy load them with setSentry - won't help. Any ideas how understand where problem is? Ye, i know, it's Steam and we can't know for 100% how it works under the hood. But it bothers me that the same code behaves differently on different OS, so it's probably some bug inside steam-user. P.S. Sorry for my English. English is not my native language
  8. Hi guys! I have just started using the npm module steam-user and noticed that a simply `import steamUser from 'steam-user';` would take about 3GB of memory. Is that totally normal? I should note that I am using steam-user in a svelte project.
  9. Hello, I'm using this code to keep me logged (to avoid session expired) setInterval(function() { if (client.steamID) { client.webLogOn(); } else { client.logOn(account); } }, 1800000); but sometimes I'm getting crash with LogonSessionReplaced, should I use relog() instead?
  10. Hello, i have a problem with multiple TradeOfferManagers, in this example the first console.log returns a name for a different account then the second console.log. How is this possible? let offer = managers[x].createOffer(new SteamID(steamId), token); offer.getUserDetails((err, me, them) => { console.log(me.personaName); console.log(managers[x].steamID.getSteamID64());
  11. Hello, I apologize for the longwinded questions, I'm new to Steam trading and would like to learn more about building trade bots. Using multiple trade bots at once is a pretty common usage scenario of node-steam-user and node-steam-trade-offer-manager but I haven't found many guides or examples that go into finer detail on this. I have a fuzzy idea of how to do it but I would like some validation/clarification to see if I'm heading in the right direction. If I have many available bot accounts, say 20 bots, and I start them all up at once, I'm sure I would run into steam's rate limiting per IP address, as well as getting a LogonSessionReplaced error if my bots were to re-login on the same IP. I see that there is a loginID option for the steam-user logOn method, I'm assuming I can use a proxy pool in tandem with this option to mitigate these issues? Is logging in with different IP addresses enough or do I need to use a loginKey? I see that when logging in and using the rememberPassword option, it triggers a loginKey event, which I can store and use for subsequent logins. Does using a loginKey bypass the LogonSessionReplaced error as well? I don't quite understand the benefit of using a loginKey instead of username/password. Second question - Can I send trades from the same bots that are running in separate processes? For example, maybe on app startup, I can log into all my bots at once and have them ready to initiate trades. I would also have a worker process running in the background that would start up all of the same bots to send a trade at a later time, let's say when an item on trade hold becomes available. Would these bots log off the other bots from app startup? This is probably related to my first question about using a loginKey or loginID. Last question - How can I check if a bot is already logged on? Instead of starting up all bots on app startup, I could just login to each bot separately when a trade is requested for an item in their inventory. I would want to check if the bot is logged in already before calling the logOn method again. Thank you for your time and for your great work on these libraries!
  12. First of all, thanks for writing and maintaining this library ! I'm trying to pull more than 5k servers from `getServerList()`. I don't see any options to paginate (don't think Steam supports it). Any idea how this could be achieved ? Thanks
  13. const client = new SteamUser();client.setOption("localAddress",logInConfig.publicIP);const logInOptions = { accountName: logInConfig.accountName, password: logInConfig.password, twoFactorCode: SteamTotp.generateAuthCode(logInConfig.sharedSecret)}; const community = new SteamCommunity({ localAddress:logInConfig.publicIP});const manager = new TradeOfferManager({ steam: client, community: community, language: "en", cancelOfferCount: 30});client.logOn(logInOptions);Will the manager use the logInConfig.publicIP?
  14. const manager = new TradeOfferManager({ steam: client, community: community, language: "en"}); manager.on("sentOfferChanged ", function (offer,oldState) { console.log(`Sent offer changed:` + offer.state);}); sentOfferChanged doesnt emit, the only time it emits something is when I send an offer that needs to be confirmed (ETradeOfferState = 9). Do I have to call doPoll() manually or Iam missing something?
  15. Just since 8 hours ago, my bot stop working, it does not accept trade-offers. so when I tried to restart it, I get stuck in setCookies() portion, it gives error 403. I logged in my accounts, check community market, I can purchase just fine. Checked badge pages, can craft just fine. It seems all of my accounts that I idle in ASF stopped working too.
  16. I've fixed the issue. It was ``addTheirItem`` instead of ``addMyItem``.
  17. How do i check if a group is joinable or invite only?
  18. Hello, What data must be stored for reauthorization ? For example i can provide my cookies into node-steamcommunity for renew my auth ( if it be saved before ), but what's data need to store for renew my auth in steam-user ? Because when i have much accounts auth take so long time when i restart my software.
  19. Hello, I tried to use community.postUserComment but it didn't work with no errors. I'm using the script below. I'm trying to comment on user profiles. client.on('friendRelationship', (friend, relationship) => { if(relationship == 3) { client.chatMessage(friend, "Hello!"); community.postUserComment(friend,"Thanks for adding!"); }});
  20. Ino


    Hi, when account have trade ban - limitations.communityBanned is false, can you fix it please ?
  21. Hi, can you add method for send image via steam chat ? First method for upload photo, and second method for send it to chat.
  22. Hello together with a friend are planning to start your own roulette to CS: GO. However, I encountered one problem, when I turn on the bot, he can not log in to your account and shows an error SteamAuthorizationError. Does anyone know what could be wrong ? Secret code and identity code i checked a million times. What could be more wrong. http://m.imgur.com/Bfmjd3F,m4LiYIA
  23. Hello, I've had code I was using frequently about ~1 year ago. Rerunning the code today, I get the Steam Error Code 55 on every trade offer I try to send. I've updated all the packages, code hasn't changed a bit. Could anyone provide an explanation of what error code 55 "Remote Call Failed" means? Thanks.
  • Create New...