Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Past hour
  2. Got it, yeah I'm using the SteamUser instance in the constructor, so I'll leave it as default. Thank you very much!
  3. Today
  4. 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.
  5. 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!
  6. Last week
  7. You can't use OpenID with steam-user.
  8. { 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]
  9. 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.
  10. 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?
  11. 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
  12. You can use csgofloat opensource. https://github.com/csfloat/inspect/tree/master
  13. 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
  14. Earlier
  15. 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)
  16. 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.
  17. 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
  18. I suggest you ask the csfloat project, with which I have no relation.
  19. 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.
  20. 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
  21. ummm i have a problem idk y this is happening can anyone diagnose? the below is the only connection logic client.logOn(logOnOptions); client.on('loggedOn', function() { console.log(green,`Logged into Steam ${accname}`); }); setInterval(() => { if (!client.steamID) { client.logOn(logOnOptions); } },600000); // 10 mins 600000 setInterval(() => { if (!client.steamID) { client.logOn(logOnOptions); }else{ client.webLogOn(); } },3600000); // 1 hour 3600000 C:\New folder\node_modules\steam-user\components\09-logon.js:49 let alreadyConnectingError = new Error('Already attempting to log on, cannot log on again'); ^ Error: Already attempting to log on, cannot log on again at SteamUser.logOn (C:\New folder\node_modules\steam-user\components\09-logon.js:49:32) at Timeout._onTimeout (C:\New folder\mainimprovements.js:788:20) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) Node.js v21.7.1
  22. My cancellation settings are also not taking effect, and I'm not sure why. dota2 can work but csgo can not work...
  23. "cancelTime: 600000" has no effect on "Csgo2" but is effective for "Dota2." How can I set it up? useAccessToken :true ok good
  1. Load more activity
×
×
  • Create New...