-
Posts
82 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Riga, Latvia
Recent Profile Visitors
899 profile views
TomYoki's Achievements
-
My bad, I assumed there might be at least something partially useful.
-
But what about these? https://github.com/SteamRE/SteamKit/tree/master/Resources/Protobufs/tf
-
TomYoki started following Parse steamguard code , Server , exclude Mysterious Trading Card and 7 others
-
TomYoki reacted to a post in a topic: How would you calculate the amount of metal to add to trade offers?
-
exclude Mysterious Trading Card
TomYoki replied to neverhood's topic in node-steam-tradeoffer-manager
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. -
TomYoki reacted to a post in a topic: Is my bot being Attacked?
-
Quite certain this is the event from node-steamcommunity you should listen to. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#sessionexpired
- 1 reply
-
- node.js
- node-steam-user
-
(and 1 more)
Tagged with:
-
Dr. McKay reacted to a post in a topic: amount of Gems in trade offer (itemsToReceive)
-
amount of Gems in trade offer (itemsToReceive)
TomYoki replied to neverhood's topic in node-steam-tradeoffer-manager
`amount` property is your friend. https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#amount -
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.
-
Using editProfile-Function kicks out other settings of my profile
TomYoki replied to mar71n's topic in node-steamcommunity
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. -
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.
-
TomYoki reacted to a post in a topic: Cannot update profile privacy & settings
-
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."); } });
-
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)
-
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".)
-
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()
-
You can create a custom function that can do it, The modules supply you with the headers you'll need for the request.
-
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.