Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Yesterday
  2. Thanks you for your answer, i'll test both method you told me
  3. In theory yes, but steam-user is not the best way to determine if some other user owns a particular app. You'd want to use the WebAPI's GetOwnedGames method, or ideally the publisher CheckAppOwnership method.
  4. Yes, but: You shouldn't relog your client connection if your web session expires. Just call webLogOn() Calling logOff() in the error event listener is going to cause an error; if error gets emitted you're already disconnected (same applies to the disconnected listener) steamID is never going to be null in the disconnected event listener
  5. Last week
  6. when i call steamuser.logOff() will the disconnected event trigger? So if i wanna relog when steam user is on error or session expired i can just logoff and than write in the discconnected callback login? like this: this.client.on('error',(err) =>{ console.log("Client emitted Error: "+err,colors.FgRed,this.bot_number) this.client.logOff() }) this.community.on("sessionExpired", ()=>{ console.log("Session Expired",colors.FgRed,this.bot_number) if (this.client.steamID == null) { cl
  7. Hey ! Can I use 'node-steam-user' with discord.js ? For example, I wanna get a bot which if the user got my game on Steam, it adds him the role automatically. Cheers, Frite
  8. The profile data is cached for some time, you should try requesting again after a little while.
  9. The first argument to the webSession event is sessionID, not cookies.
  10. C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steamcommunity\index.js:296 cookies.forEach((cookie) => { ^ TypeError: cookies.forEach is not a function at SteamCommunity.setCookies (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steamcommunity\index.js:296:10) at TradeOfferManager.setCookies (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steam-tradeoffer-manager\lib\index.js:124:18) at SteamUser.<anonymous> (C:\Users\benbo\Desktop\HH\reworked_Bot\steam_bot.js:72:22) at SteamUser.emit (events.js:315:20) at C
  11. I wanted to ask why im getting all the time the same privacyState if im requesting it? Like if the profile is private it says correctly: "profile is private". But if i change the settings on the profile and request it again it says again the same privacystats as privat. community.getSteamUser(steamID, (err, user) => { if(err) { console.log("there was an problem to get the steam user!") return; } if (user.privacyState != "public") { console.log("steam profile is not public!") } });
  12. Okay i am sorry to bother you again but just now i wasnt home and i came back to see that my bot was trying to sent an offer all the time. I have programmed to so that if it gets the error it isnt logged in that i waits 5 secs and than tries to sent the offer again. But it was stuck there and tried for 45 mins because it didnt logged back in. Are you sure that the not logged in error triggers the session expired event?
  13. Yes, it will come up once and then you should get logged back in. It's fine to go ahead and call getExchangeDetails in the callback of offer.accept.
  14. Okay so i should come up once but then log back in? And after i accept an offer should i wait before requesting getExchangeDetails or is it okay to just write it in the callback? And thank you so much for your help
  15. steamcommunity doesn't know that the session expired until it gets back a "Not Logged In" response. In other words, it's the "Not Logged In" response itself that triggers the sessionExpired event.
  16. Hi so i have the same error: [2020-11-22 18:06:02] Bot #undefined Error: Not Logged In at SteamCommunity.<anonymous> (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:345:25) at Request._callback (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\request\request.js:185:22) at Request.<anonymous> (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\request\request.js:1154:10)
  17. Earlier
  18. I know that but my problem is that I do not know how to add a specific item, could you give me an example? I know I can add an item with addTheirItem(item as const for example) but how can I specify an item to add?
  19. You would retrieve the other user's inventory and use addTheirItem to add their items to the offer.
  20. How can I select an item from someone's inventory(for example select an eyelander from their inventory) and make a tradeoffer for it? How can I ask them for a specific item and give them a specific item? for example : [Ask] 2x Eyelander, [Give] 1x Scrap.
  21. For example, can we use getProductInfo for CSGO when it was at change number 9759392?
  1. Load more activity
  • Create New...