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. 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
  2. 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.
  3. 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?
  4. 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());
  5. 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!
  6. 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
  7. 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?
  8. 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?
  9. 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.
  10. I've fixed the issue. It was ``addTheirItem`` instead of ``addMyItem``.
  11. How do i check if a group is joinable or invite only?
  12. 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.
  13. 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!"); }});
  14. Guest

    tradeban

    Hi, when account have trade ban - limitations.communityBanned is false, can you fix it please ?
  15. Guest

    send image to friend

    Hi, can you add method for send image via steam chat ? First method for upload photo, and second method for send it to chat.
  16. 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
  17. 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.
  18. Guest

    In-game & Away

    Hi, how can i know that my friend In-Game & Away ? In the steam chat it looks like
  19. I have a function that runs on average about 2 minutes. console.log(currentTime() + " START"); community.getSteamUser... if (DATA.onlineState == "online"... let trade = manager.createOffer... manager.getUserInventoryContents... for (let i in BotSets.BaseSets) {.... } for (let i in BotSets.FoilSets) {.... } // ---------------------------- INV = INV.filter((ITEM) => ITEM.getTag("item_class").internal_name == "item_class_2"); console.log(currentTime() + " TEST, STEP 05-A"); INV = INV.filter((ITEM) => ITEM.market_hash_name.indexOf("470480-Messenger") == -1); for (let i = 0; i < INV.length; i++) { if (i == 5000) console.log(currentTime() + " TEST, ITEMS CHECKED: 5,000"); if (i == 40000) console.log(currentTime() + " TEST, ITEMS CHECKED: 40,000"); if (i == 50000) console.log(currentTime() + " TEST, ITEMS CHECKED: 50,000"); if (i == 60000) console.log(currentTime() + " TEST, ITEMS CHECKED: 60,000"); if (i == 70000) console.log(currentTime() + " TEST, ITEMS CHECKED: 70,000"); if (i == 80000) console.log(currentTime() + " TEST, ITEMS CHECKED: 80,000"); if (i == 90000) console.log(currentTime() + " TEST, ITEMS CHECKED: 90,000"); if (i == 100000) console.log(currentTime() + " TEST, ITEMS CHECKED: 100,000"); if (i == 110000) console.log(currentTime() + " TEST, ITEMS CHECKED: 110,000"); if (amount < CONFIG.LIMITS.MAXTRANSFERCARDS && !idList.includes(INV[i].assetid)) { trade.addMyItem(INV[i]); amount++; } else if (amount == CONFIG.LIMITS.MAXTRANSFERCARDS && !idList.includes(INV[i].assetid)) { reachedLimit = true; break; } } console.log(currentTime() + " TEST, STEP 05-B"); // ---------------------------- trade.send((ERR) => { .... In the end, I get: 23:24 START 23:25 TEST, STEP 05-A 23:25 TEST, ITEMS CHECKED: 5,000 23:25 TEST, ITEMS CHECKED: 40,000 23:26 TEST, ITEMS CHECKED: 50,000 23:26 TEST, ITEMS CHECKED: 60,000 23:26 TEST, ITEMS CHECKED: 70,000 // >> here I see that the bot goes offline 23:26 TEST, ITEMS CHECKED: 80,000 23:26 TEST, ITEMS CHECKED: 90,000 23:27 TEST, STEP 05-B 23:27 Error: HTTP error 401 23:27 client.steamID: null 23:27 (WAIT FOR RECONECT) 23:27 An error occurred while sending trade offer: Error: Not Logged In 23:27 (Login...) Sometimes this function works, about 50/50%, but lately very often the bot goes offline before the trade offer is sent. Are there any tips, how can I prevent the bot from shutting down while this function is running?
  20. I wanna make a bot wich responds randomly when the user typer !random, i have created a array with the example: var random = ["random","blabla","bla"] So i added the function: function random_sentences(random) { return random[Math.floor(Math.random()*random.length)];} and if anyones type !random: else if(message == "!random") { client.chatMessage(random_sentences(random)) } this error appears: throw new Error("Unknown SteamID input format \"" + input + "\""); ^ Error: Unknown SteamID input format I did like to know how the bot can reponse randomly.Thanks
  21. Hi, could i've been banned because using wrong login settings or smth else ? Nobody uses an account except me
  22. How can I find out what item the user wants to receive? 1. I want to continue if item name = "Abc name Trading Card" 2. If not, decline assetid/classid change very often and the code stops working. manager.on("newOffer", (OFFER) => { console.log(OFFER); if (OFFER.itemsToGive.length == 1 && (OFFER.itemsToGive[0].id == "10964018350" || OFFER.itemsToGive[0].id == "11724177271" )) { // accept TradeOffer { partner: SteamID { universe: 1, type: 1, instance: 1, accountid: 23587203 }, id: '3695907410', message: '', state: 2, itemsToGive: [ EconItem { appid: 753, contextid: '6', assetid: '11497188550', classid: '2238354881', instanceid: '0', amount: 1, missing: false, est_usd: '7', id: '11497188550', fraudwarnings: [], descriptions: [], owner_descriptions: [], actions: [], owner_actions: [], market_actions: [], tags: [], tradable: false, marketable: false, commodity: false, market_tradable_restriction: 0, market_marketable_restriction: 0 } ], itemsToReceive: [], isOurOffer: false, created: 2019-09-04T11:04:43.000Z, updated: 2019-09-04T11:04:43.000Z, expires: 2019-09-18T11:04:43.000Z, tradeID: null, fromRealTimeTrade: false, confirmationMethod: 0, escrowEnds: null, rawJson: '{\n\t"tradeofferid": "3695907410",\n\t"accountid_other": 23587203,\n\t"message": "",\n\t"expiration_time": 1568804683,\n\t"trade_offer_state": 2,\n\t"items_to_give": [\n\t\t{\n\t\t\t"appid": 753,\n\t\t\t"contextid": "6",\n\t\t\t"assetid": "11497188550",\n\t\t\t"classid": "2238354881",\n\t\t\t"instanceid": "0",\n\t\t\t"amount": "1",\n\t\t\t"missing": false,\n\t\t\t"est_usd": "7"\n\t\t}\n\t],\n\t"is_our_offer": false,\n\t"time_created": 1567595083,\n\t"time_updated": 1567595083,\n\t"from_real_time_trade": false,\n\t"escrow_end_date": 0,\n\t"confirmation_method": 0\n}' } However, I see no way to get the name (without loading all inventory). Is there any way to get the name of the items like getReceivedItems, but for itemsToGive? (And I also wanted to know why tradable = false)
  23. I want to keep track of what item I have sent to a partner. For an example: I have 10 SAME* items that I want to giveaway to random users. But I need to track which item I have sent, so I don't send 1 unique item to 2 persons as a trade offer. * By same I mean items with the same market_hash_name So my questions are: does assetid change? can I use just "id" to track which items I have sent? can an item have no assetid? can one or more items have the same assetid in ONE inventory Thanks in advance
  24. Basically I'm trying to figure out how to use the node module steam-user to create a steambot in order to send announcements to a steamgroup via the vents and to make posts/threads under a steamgroups discussions section. So far setting up the code for getting the bot working was easy enough with the tutorial, however I'm currently stuck with the problem of logging in. I've not tested my code yet because I already know its not going to work without propperly setting up a way to use the code steam will end up emailing me. basically I just want a quick rundown of how to get this thing running with steamguard on. after that I'd just like to know what functions I'd need for steamgroup related stuff since the github page didn't really go over how to make posts,threads and events. it only seemed to go over detecting when they happen to be made by others it seemed.
×
×
  • Create New...