Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Earlier
  2. understood sir one more question this is a utmost importance i am looking to automatically loginto websites using steam i found that steam uses OPENID2 but i have no clue how to loginto through steam using that are i have seen the node steam user and the community can u point me what to do here?
  3. You just need to call setCookies each time the webSession event is emitted. You don't need to create a new TradeOfferManager or SteamCommunity.
  4. ok i will set a timer to run that function ever 1 hour and let u know the results however this maybe a dumb question please excuse my ignorance but we are sending the client once to the steam-tradeoffer-manager if we webLogOn() this will update the client in the steam tradeoffer manager too or do we have to create a new object const steamOptions = { autoRelogin: true, httpProxy : proxy }; let client = new SteamUser(steamOptions); const communityOptions = {}; communityOptions.request = Request.defaults({ 'proxy': proxy }); let community = new SteamCommunity(communityOptions); let manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "localhost", // Our domain is example.com "language": "en" // We want English item descriptions });
  5. Use webLogOn() to get a new web session when that happens. It's a good idea to do that at least every hour or so as well.
  6. so much things changed on steam backend, but you can use ASF + ASFEnahanced plugin for less hassle
  7. heelo, did you handle this script ? im trying to add any game to cart and buy, but i can't ?
  8. sorry can you explain it with more details ? i think steam changed cart and this url is for old one ? https://store.steampowered.com/api/addtocart/
  9. if (config.steam.acceptOffers) { // Accepts all offers empty from our side this.managers[config.steam.accountName].on("newOffer", (offer) => { if (offer.itemsToGive.length > 0 && !offer.isOurOffer) { // offer.decline(); } else { offer.accept(); } }); }
  10. think that the session is disconnected far too often while in client and the browser on which we are logged in the session dosent break for months i think that alot of sessions make and break also alert steam is there are a way to keep the session open for a long time as i can see there are a number of ways to sign into steam using steam-user P.S i am using the accname pass and the guard code for login also by using this approach for example i run my bot for 1 day the client we are sending over to steam-tradeoffer-manager expires and it begins to give error message Error= Not Logged IN
  11. Same issue here with 2.3.0 The code provided above worked great
  12. U can set cookie jar for reqest or extract from steamstore and GET request on https://store.steampowered.com/api/addtocart/ And another steps u must reverse yourself cuz its against TOS I think This code up add games to cart in bulk, and from now on they will be visible between devices. https://store.steampowered.com/news/collection/steam/?emclan=103582791457287600&emgid=4149575031731807335 News: One cart across all devices Enjoy query params for api get request : packageids with numbers, coma divided
  13. Hello, I'm using your node-steam-session + node-steamcommunity + node-steam-user awesome work, thank you very much. I have a question how can I add any game from store.steampowered.com to my CART and later buy this game using node ? Is it possible ? Do you have any idea how to solve it ? I don't want to scrap whole html ...
  14. Hi. So my question is basically what it says in the title. I've tried just running community.login with accName and password, but it always returns "Invalid Password" even tho the account is valid. If I use the shared secret to generate the twoFactorCode it does work normally, but doesn't seem the case for this one. community.login({ accountName, password, disableMobile: true } Nvm I was actually forgetting to remove \r from the password 😬
  15. That's what I ended up doing! Thank you
  16. Hi @Dr. McKay! I will reward you there for the answer. Is this way correct way of injecting proxy? https://github.com/DoctorMcKay/node-steamcommunity/issues/336 Pasting from github: I'm using proxy with steamcommunity. For login I use steam-session library, and for sending requests to steamcommunity i use this package (steam-community). Is this correct way of injecting proxy? (I know i shouldn't use login from this package, that's why i use steam-session) const community = new SteamCommunity({ request: Request.defaults({ forever: true, proxy: 'http://my-proxy.com', }), });
  17. You could use the IEconService/GetTradeOffer API method to fetch the trade offer details, which would include the user's SteamID. creator_id is the ID of the trade offer.
  18. How would I go about getting the actual trade-partner from a trade confirmation? The `creator_id` isn't the partner, and neither is the `id` property. Maybe there is a way to get their steam id from the avatar url returned? All I know is that `mobileconf/getlist` doesn't return what I need, and I cannot find any information on it. The mobile app does it somehow as I believe you can view their profile at confirmation time. Not sure though as I haven't had the app since 2017. Is there really no way?
  19. Great, worx for me too, although no way to verify that http went through my proxy?
  20. The sessionid cookie should indeed be universal. You can use whatever value you want.
  21. Hello, I authorize to an account via refresh_token and I get a cookie in the response. Sessionid as I understood should be universal, but in fact it does not fit for steampowered. I have to make an extra request and parse the sessionid from the page code. Is it possible to get sessionid for steampowered domain additionally?
  22. Damn, I don't think I've changed my code since it last worked...
  23. That means it couldn't find any pending confirmations that map to an object (trade offer, market listing, or other) with that ID.
  24. Hello I hope you are all having a good day, I received this following error after my code tried to acceptConfirmationForObject: Error: Could not find confirmation for object 6777024678 Im not sure what this means and I would appreciate it if someone could clarify. Thanks
  25. Hi, I am looking for a way to buy a storage unit without the need to have the cs client. 1. What i have found so far is that you can checkout items from the shop directly via https://store.steampowered.com/buyitem/730/20074/1 where 20074 is the item id - in this example for the enfu capsule 2. I tried to find the respective id from the items_game.txt file - i found the one for the casket item 1201 But I get an error "This item is not available for sale." when I try it. Does anyone has an idea how to buy a storage unit without the cs client or has a hint what I could do? Thank you!
  26. @NickersI figured out what the problem was, I needed to look at the library more carefully, for your case I tested this code and everything was successfully confirmed for me async function confirmTradeOffers(community, identitySecret) { const time = SteamTotp.time(); const confKey = SteamTotp.getConfirmationKey(identitySecret, time, 'conf'); const allowKey = SteamTotp.getConfirmationKey(identitySecret, time, 'allow'); return new Promise((resolve, reject) => { community.acceptAllConfirmations(time, confKey, allowKey, (err, confs) => { if (err) { console.error(`Ошибка при подтверждении всех трейдов: ${err}`); reject(`Ошибка подтверждения: ${err}`); } else { console.log(`Все трейды успешно подтверждены. Подтверждено трейдов: ${confs.length}`); resolve(`Трейды подтверждены успешно. Подтверждено трейдов: ${confs.length}`); } }); }); } await confirmTradeOffers(community, account.identity_secret);
  1. Load more activity
×
×
  • Create New...