Jump to content
McKay Development

TomYoki

Member
  • Posts

    82
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Riga, Latvia

Recent Profile Visitors

1270 profile views

TomYoki's Achievements

  1. My bad, I assumed there might be at least something partially useful.
  2. But what about these? https://github.com/SteamRE/SteamKit/tree/master/Resources/Protobufs/tf
  3. This forum is for helping users with McKay's modules / Steam Bots, not teaching JavaScript. There's plenty of courses online, that will do just that. I suggest you have a look at https://www.codecademy.com https://www.freecodecamp.org https://www.codewars.com and come back when you have more understanding, otherwise you will run into 100 more problems. But since your cards are expiring: inventory is just an array - not object. So all you need to do is call `let filteredInventory = inventory.filter(item => {...})` which will iterate the array and each time will give you an object, named `item`, with it's values. So if item's type doesn't include your string, you wish to return it. In the result you get new array named `filteredInventory` without objects that included your string.
  4. I'm certain you want context 6, not 2. Might be useful for you to read this explanation about Steam items. https://dev.doctormckay.com/topic/332-identifying-steam-items/
  5. Quite certain this is the event from node-steamcommunity you should listen to. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#sessionexpired
  6. `amount` property is your friend. https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#amount
  7. For getting their Steam games you can use: http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/ Non-Steam games are not real games, so you cannot get them using any official Steam methods. Only way I can think of is scraping their profiles, yet that would be very unreliable and inefficient way to do it.
  8. A duplicate of https://dev.doctormckay.com/topic/1063-editprofile-and-profile-showcase/ afaik nothing has changed since then. You may want to consider creating your own function, if showcases are that important to you.
  9. You could create an object which holds SteamID64 -> Current time + 604800000 // 604800000 Being 1 week in ms Then just iterate the object every few hours to see if current time is >= than specified time, if so - remove the user.
  10. Greetings, while working on my bot's setting module, I ran into an issue. When calling `editProfile` or `profileSettings` callback with error is returned saying. "Error: options.uri is a required argument" But earlier this week it was working just fine. This is how I'm calling it, if that's any of help. // When calling this function, "profile" object is being passed. let self = this; this.name = profile.name; this.description = profile.description; this.picture = profile.picture; this.community.editProfile({ name: self.name, summary: self.description }, (err) => { if(err){ return callback("Unable to update profile information."); } }); this.community.profileSettings({ profile: 3, comments: 3, inventory: 3, inventoryGifts: false }, (err) => { if(err){ return callback("Unable to update profile settings."); } });
  11. You could do something like let auth; setInterval(() => { auth = SteamTotpOrWhateverYouUseToGenerateAuthCodes(shared_secret); }, 1000 * 10); //Refresh code every 10 seconds; (If that's what you're attempting to accomplish)
  12. This forum is not the place for such posts as this. It's main purpose is to help with McKay's node modules, not for node/server related questions that could be answered on stack overflow and such. However, to at least partially guide you in the right direction, you'd be wanting to look at server protection. Such as strong passwords, disabled root login, sha encryption, etc. (Seriously, just google "vps protection".)
  13. Don't because: 1.) It's super annoying. 2.) It doesn't give any actual advertisement whatsoever. 3.) Bots get community banned for doing this. However, if you still choose to do it just read the actual documentation. > Either a SteamID object or a user's URL (the part after /id/) aka typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()
  14. You can create a custom function that can do it, The modules supply you with the headers you'll need for the request.
  15. TomYoki

    getsteamid64?

    I am not completely sure why this happens, however this may happen if you're attempting to get it before cookies have been set. Attempt to fire the function when you have set cookies & sessionID.
×
×
  • Create New...