Jump to content
McKay Development

What Comes Around

  • Content Count

  • Joined

  • Last visited

Recent Profile Visitors

192 profile views
  1. Why not just check settings.language first and if it's blank/null/undefined set it to a default value?
  2. So I'm trying to replicate what SDA (steam desktop authentication) does with nodejs. I can add a phone number using some puppeteer code, I can setup 2FA, but I don't get some of the other details that SDA gets, like device_id. Any idea how I could get that? Nevermind, I found out how to do it with Steam-Totp. I was just searching in the wrong place. My bad!
  3. Thank you very much. Sorry for the late response, been having too much work lately. But yes it seems like it's just not possible go through the verification process with that method. For now I guess I'll stick to some headless puppeteer verification solution I made, it's retarded, it's resource heavy, but that's all I know and it gets things done. Wish I could reach a level of understanding where I could do what you do but just don't have the time. Thank you very much for your efforts though!
  4. Right, sucks I made that mistake again. Since the last time I did, a bunch of users had their accounts reset on a database. Whoops.
  5. So I'll start with the second function. Firstly not sure why you have square brackets around steamid. What you need to do is make an array. You can do this like so: var steamidstolookup = [040230453045, 0342034023402(fake ids but u get the point)] <--- this can also be strings that can be parsed into SteamID objects as stated in the docs. As for why you are getting the error it's because you are trying to look for an object that doesn't exist in the first parameter of the callback. Here's an example of how you should do it: client.getPersonas(steamidstolookup, (err, person
  6. Hmm, that's odd because I believe it is verified. Here is some code I used to check it, but I have also checked it manually. client.requestValidationEmail(function(){ console.log("verified") store.setCookies(cookies); store.addPhoneNumber('+31************', true, (err) => { if (err) { console.log(err) } }) }); Log: *********** has successfully logged in verified { Error: Unknown state email_verification at Request.request.post [as _callba
  7. Normally in this kind of situation it's much better to use a switch statement. Which would look like this: switch(expression) { case x: // code block break; case y: // code block break; default: // code block } Here is some example code, that produces this result: const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); const SteamStore = require('steamstore');
  8. No idea why that's happening. I copy and pasted the code and everything seemed fine: also, I believe you could improve this by lower casing the message contents to make both the capitalized and non-capitalized versions of the same command work. This is what the code for that looks like: client.on('friendMessage', function(steamid, message){ if (message.toLowerCase() == '!hello'){ client.chatMessage(steamid, 'Hiya'); } else { client.chatMessage(steamid, 'Adios!'); } }) As for why it's giving you
  9. Thank you very much, noted. However I still have one question. I still get an error of Unknown state email_verification. When I looked through the source of the error I see that the function addPhoneNumber makes a post request then gets the response. How do I find the time to respond to the email?
  10. Why not use a tradeoffer event listener? I think that would be a much easier route. You can get the sender id, the contents of the trade, the message, a lot more. If by respond back you meant send a message back, you could get the steamid using the partner id and just send the user a message.
  11. store.setCookies(cookies); store.addPhoneNumber('+31062571****[true]', (err, status, bypassConfirmation) => { if (err) { console.log(err) } if (status) { console.log(status) } if (bypassConfirmation) { console.log(bypassConfirmation) } I have some questions regarding the addPhoneNumber method. Is this the right way to pass bypassConfirmation = true? I have never seen this way of passing params : number[, bypassConfirmation], callback
  12. So I am currently setting up bots with 2FA manually using steam desktop authentication, but I think it's time, it's time to use my brain again. So I have been looking through the steam community npm docs and I found 2FA methods but no add phone methods. I'd like to be able to take accounts with no steam guard, add a phone number, and then turn on 2FA, and finally console log all the information about the account, all the secrets and everything. Would this be possible? (mainly the phone part) Otherwise I'll have to use puppeteer but that's sorta resource heavy and not ideal (also I don't know c
  13. Because I don't want to take up an entire new thread, I'll ask here, how can I check if a user's trade token is valid? Should I just try manager.createOffer and check if there's an error?
  • Create New...