Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Past hour
  2. i do know what an error code 503 means but the main question is how to handle this like to i implement a back off strat or like call log on again how should i handlethi because the script just stops at that point when the 503 comes
  3. Today
  4. https://github.com/DoctorMcKay/node-steam-user?tab=readme-ov-file#error The 'error' event.
  5. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
  6. I apologize for my dumb question sir, but I haven't found it anywhere else. What is the specific error that I should listen for when I need to logOn again? ATM I'm only using community.on("sessionExpired") to call webLogon to refresh the cookies on community and trade manager, with the client.on("webSession") event btw.
  7. Yesterday
  8. getting this error idk y this is caused and how to handle this C:\New folder\node_modules\steamcommunity\components\http.js:108 err = new Error("HTTP error " + response.statusCode); ^ Error: HTTP error 503 at SteamCommunity._checkHttpError (C:\New folder\node_modules\steamcommunity\components\http.js:108:9) at Request._callback (C:\New folder\node_modules\steamcommunity\components\http.js:50:61) at self.callback (C:\New folder\node_modules\request\request.js:185:22) at Request.emit (node:events:519:28) at Request.<anonymous> (C:\New folder\node_modules\request\request.js:1154:10) at Request.emit (node:events:519:28) at Gunzip.<anonymous> (C:\New folder\node_modules\request\request.js:1076:12) at Object.onceWrapper (node:events:633:28) at Gunzip.emit (node:events:519:28) at endReadableNT (node:internal/streams/readable:1696:12) { code: 503 } Node.js v21.7.1
  9. Last week
  10. Got it, yeah I'm using the SteamUser instance in the constructor, so I'll leave it as default. Thank you very much!
  11. If you're passing an instance of SteamUser in to the constructor, I recommend you don't poll more frequently than every 30 seconds (30000). And you shouldn't be running full updates more frequently than every 2 minutes (120000). In other words, the defaults are fine.
  12. Hey! I'm having issues polling the trade offers, it usually works when I start the bot but not when I send a trade offer while the bot is running. This is my tradeOfferManager config: this.tradeOfferManager = new TradeOfferManager({ steam: this.client, community: this.community, language: "en", pollInterval: 1000, pollFullUpdateInterval: 2000, cancelTime: 600000 }); Any ideas or suggestions? Update: Added a "pollFailure" listener and I am now seeing this error: Error: HTTP error 429 What's the recommended poll interval for trade offers to prevent exceeding this limit? Thanks!
  13. You can't use OpenID with steam-user.
  14. { provider: 'steam', type: 'oauth', providerAccountId: '76561198073023481', id_token: '#x###x##-#xx#-###x-####-#########xxx', access_token: '#x##xx##-xx#x-##x#-x##x-xxx##x##x#x#', steamId: '76561198073023481', name: '2JZ 4U', email: '[email protected]', picture: 'https://avatars.steamstatic.com/4dc49709d597bead9ebfbca0debf2bbe3f646b76_full.jpg', sub: '76561198073023481', id: '76561198073023481', image: 'https://avatars.steamstatic.com/4dc49709d597bead9ebfbca0debf2bbe3f646b76_full.jpg', iat: 1714362671, exp: 1716954671, jti: 'x#xx#xx#-#x##-#x#x-#xxx-xx###xxx###x' } To speed things up I've included a sample payload received from my OpenID auth provider. I've replaced the tokens with x for any letter [a-z] and # for any digit [0-9]
  15. I have an OpenID 2.0 provider that handles authentication with steam. This ensures my users don't have to trust me nor themselves with their credentials. I'm wanting to plug this into steam-user. I've tried everything I can think of.
  16. Hello, is there any possibility that while polling the offer change status event, it does not get triggered? For example, if the offer I sent is declined by the user, but I don't get informed about it on my backend. Should I make some additional history checks for that?
  17. Hello a quick question. Is it possible to run steam tradeoffer manager using different proxies? Suppose that I have 100 proxies and I want to run a single account (as bot) using these IP addresses. Is it possible to do so? In fact, I'm looking for a way to prevent bot from banning
  18. You can use csgofloat opensource. https://github.com/csfloat/inspect/tree/master
  19. Earlier
  20. Hi Doctor, thanks for your instructions. Just a quick question. Is it possible to run steam tradeoffer manager using different proxies? Suppose that I have 100 proxies and I want to run a single account (as bot) using these IP addresses. Is it possible to do so? In fact, I'm looking for a way to prevent bot from banning
  21. In order for me to get a lot of floats per second I would need a lot of accounts. What's the best way to make / automate a lot of accounts so that I can start working on this project. (100-1000)
  22. The inspect request is rate limited. The absolute fastest I've seen it work is once per second, and that may even be too frequent these days.
  23. It's a lot of work I don't want to do. Instead I am going to use globaloffensive npm. I have gotten it to work with 5 floats, but that's it. I get 0 errors and I am not sure how to fix it. Here's my code It works with around 5 links then it stops working. If I put 100x the same inspectlink and then 10 unique ones it will do 104 links. It's weird. I hope you're able to help and maybe tell me if there's a way to bulk request floats csgo.on('connectedToGC', () => { console.log('Connected to CS:GO Game Coordinator'); fs.readFile('inspect_links.txt', 'utf8', (err, data) => { console.log("Reading File") if (err) { console.error('Error reading inspect_links.txt:', err); return; } const inspectLinks = data.split('\n').map(link => link.trim()).filter(link => link); // Split by newline, trim whitespace, and filter out empty lines console.log(inspectLinks) const numRequests = inspectLinks.length; // Number of requests to make // Measure start time const startTime = process.hrtime(); // Perform repeated requests try { inspectLinks.forEach((inspectLink, i) => { console.log("Item") csgo.inspectItem(inspectLink, (item) => { console.log("item2") if (item) { const float = item.paintwear; // Assuming paintwear represents the float value console.log(`Float value (${i + 1}):`, float); if (i === numRequests - 1) { // Measure end time when all requests are completed const endTime = process.hrtime(startTime); console.log(`Total time taken: ${endTime[0]} seconds ${endTime[1] / 1000000} milliseconds`); } } else { console.error(`Failed to inspect item (${i + 1})`); } }); }); } catch (err) { console.log(err); }; }); }); M7903329297310948975A37061864046D11863687337479355678 M7284084347070041204A37057504987D11863687337479355678 M7384289439309646801A37065312421D11863687337479355678 M4863399372752009970A37055616057D11863687337479355678 M7384289439309646711A37065089523D11863687337479355678 M7800872405789081739A37059417732D11863687337479355678 M7903329297310948855A37065289802D11863687337479355678 M7800872405789080869A37059428152D11863687337479355678
  24. I suggest you ask the csfloat project, with which I have no relation.
  25. There's no reason to ever call logOn in an interval. If you receive the error event, then just log on again and you'll always be connected.
  26. After a while, the manager.on('new Offer', function(offer) stops working and the console.log line appears("New offer #" + Offer.id + " from " + Offer.partner.getSteam3RenderedID() + Offer. message) The incoming transaction is not displayed. When I manually restart the code, the streams become visible after using the use AccessToken. const FS = require('fs'); const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: 'en', useAccessToken: 'true' }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, 'identity_secret'); }); const logOnOptions = { accountName: 'accountName', password: 'password', twoFactorCode: SteamTotp.generateAuthCode('shared_secret') }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Logged into Steam'); client.setPersona(SteamUser.EPersonaState.Online); client.gamesPlayed(440); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, 'identity_secret'); }); manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID() + offer.message); if (/text/.test(offer.message)){ offer.accept(function(err, status) { if (err) { console.log("Unable to accept offer: " + err.message); } else { console.log("Offer accepted: " + status); if (status == "pending") { community.acceptConfirmationForObject("identitySecret", offer.id, function(err) { if (err) { console.log("Can't confirm trade offer: " + err.message); } else { console.log("Trade offer " + offer.id + " confirmed"); } }); } } });} }); 334 / 5 000 Результаты перевода Перевод Через некоторое время менеджер.on('newOffer', function(offer) перестает работать и появляется строка console.log("Новое предложение #" + Offer.id + " from " + Offer.partner.getSteam3RenderedID() + Offer. message) Когда я вручную перезапускаю код, потоки становятся видимыми после использования useAccessToken. Steam_accept.js
  1. Load more activity
×
×
  • Create New...