Jump to content
McKay Development

anupkrbid-dev

Member
  • Posts

    3
  • Joined

  • Last visited

anupkrbid-dev's Achievements

  1. Oh yes. Thanks for correcting me. I think the data I am getting from product details are same data I would get if I call client.picsCache.apps Am I right?
  2. When I call this API in the browser http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=steam_key&steamid=my_steam_id_64&format=json I get { "response": { "game_count": 2, "games": [ { "appid": 304390, "playtime_2weeks": 20, "playtime_forever": 20 }, { "appid": 654310, "playtime_2weeks": 20, "playtime_forever": 20 } ] } } Which is correct You can confirm by seeing my profile https://steamcommunity.com/id/auto-bot TF2 doesn't show up as it is free I guess. but when I call client.getOwnedApps(); I get an array of 207 appIDs out of which 204 are the ones that steam adds by default. So what I wanted to ask was that Is there any way I can only get the appIDs of games that are present in my account. Your help will be greatly appreciated.
  3. client.on('appOwnershipCached', function() { const appIDs = client.getOwnedApps(); const appDetails = client.getProductInfo(appIDs, () => { fs.writeFileSync('./logs/info.json', JSON.stringify(appDetails, null, 4)); }); }); This is my code I was trying to get the product info of all the app I have but I got this error Logged into Steam! /mnt/e/Projects/web/steam-bot/node_modules/steam-user/components/apps.js:134 packages = packages.map(function(pkg) { ^ TypeError: packages.map is not a function at SteamUser.getProductInfo (/mnt/e/Projects/web/steam-bot/node_modules/steam-user/components/apps.js:134:22) at SteamUser.<anonymous> (/mnt/e/Projects/web/steam-bot/bot.js:51:29) at emitNone (events.js:106:13) at SteamUser.emit (events.js:208:7) at /mnt/e/Projects/web/steam-bot/node_modules/steam-user/components/apps.js:481:9 at /mnt/e/Projects/web/steam-bot/node_modules/steam-user/components/apps.js:295:5 at Object.cb (/mnt/e/Projects/web/steam-bot/node_modules/steam-user/components/messages.js:174:4) at CMClient._netMsgReceived (/mnt/e/Projects/web/steam-bot/node_modules/steam-client/lib/cm_client.js:321:26) at CMClient.handlers.(anonymous function) (/mnt/e/Projects/web/steam-bot/node_modules/steam-client/lib/cm_client.js:603:8) at CMClient._netMsgReceived (/mnt/e/Projects/web/steam-bot/node_modules/steam-client/lib/cm_client.js:305:24) Can anyone Plese help?
×
×
  • Create New...