Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3394
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Dr. McKay got a reaction from derogs in Creating multiple trading bots. Problem: bot tries to accept tradeoffer from other bots   
    Move your client, community, manager, logOnOptions declarations inside of the Bot function.
  2. Like
    Dr. McKay got a reaction from derogs in How do I choose the right server host?   
    DigitalOcean is fine. I'd recommend them more now that they've dropped their prices than I would in the past. If you're going with a VPS then you need to read up on security so you don't get pwned.
     
    You probably want at least 2 GB of RAM. 1 GB might work but keep in mind that it also needs to support the entire OS too.
     
    On a reputable host your files are safe. You don't need to encrypt them unless you're really paranoid, and if you do go that route you can't store the key on the server or it'll defeat the purpose.
  3. Like
    Dr. McKay got a reaction from Go Fast in How can I modify values in a Json file?   
    let sold = JSON.parse(require('fs').readFileSync('TotalSold.json').toString('utf8'));
    sold.TotalItemsTraded.TotalKeys += something;
    require('fs').writeFileSync('TotalSold.json', JSON.stringify(sold, undefined, "\t"));
  4. Like
    Dr. McKay got a reaction from Go Fast in How do I choose the right server host?   
    DigitalOcean is fine. I'd recommend them more now that they've dropped their prices than I would in the past. If you're going with a VPS then you need to read up on security so you don't get pwned.
     
    You probably want at least 2 GB of RAM. 1 GB might work but keep in mind that it also needs to support the entire OS too.
     
    On a reputable host your files are safe. You don't need to encrypt them unless you're really paranoid, and if you do go that route you can't store the key on the server or it'll defeat the purpose.
  5. Like
    Dr. McKay got a reaction from Go Fast in How can I send offers containing items from 2 different games   
    Sure, just load two inventories and add two items from different games.
    Change the amount property on the item. For example:

    manager.getUserInventoryContents(steamID, 753, 6, true, (err, inv) => {
    if (err) {
    throw err;
    }

    let gems = inv.filter(item => item.market_hash_name == "Gems");
    let item = gems[0];
    item.amount = 300;
    offer.addMyItem(item);
    });
  6. Like
    Dr. McKay got a reaction from McMuffinDK in Please cancel some before sending more.   
    The bot thinks this because it's true.
  7. Like
    Dr. McKay got a reaction from T1MOXA in How gamesPlayed works ?   
    I don't know, sorry.
  8. Like
    Dr. McKay got a reaction from Frohser in getTradeURL & changeTradeURL   
    You're adding an event listener named getTradeURL, not calling a method. community.getTradeURL(...
  9. Like
    Dr. McKay got a reaction from Igaresha in Asking for steam guard code after few hours working   
    If you want the steamGuard event to work, you need to set the promptSteamGuardCode option to false.
  10. Like
    Dr. McKay got a reaction from AshIgorash in What is the rate limit for sending trades?   
    I don't think anyone knows an exact limit but I think you should be safe if you keep it to 1 second between trade sends. As long as you aren't perpetually sending trades at that speed, you should be fine.
  11. Like
    Dr. McKay got a reaction from tranbom202 in Memory(RAM) increasing when receive items, then service crashed   
    Are you up to date?
  12. Like
    Dr. McKay got a reaction from tranbom202 in Memory(RAM) increasing when receive items, then service crashed   
    Did you supply a language to the constructor?
  13. Like
    Dr. McKay got a reaction from T1MOXA in User data caching   
    I don't believe so.
  14. Like
    Dr. McKay got a reaction from Material in Currently In-Game   
    https://github.com/DoctorMcKay/node-steam-user#gamesplayedapps-force
  15. Like
    Dr. McKay got a reaction from Vanilla in Creating account: Error 20   
    Sounds like Valve's tired of people creating spam bots.
  16. Like
    Dr. McKay got a reaction from Catzilla in In which cases Steam throws "AlreadyPurchased" result?   
    Most likely it just won't let you redeem the key if you already own everything in the package it would grant you.
  17. Like
    Dr. McKay got a reaction from Mnt-STVN in Using node.js with socket.io   
    socket.io is okay but I don't personally recommend it because I personally think it's a bit too much for what it needs to do. Plain old boring websockets are plenty since there's no real need to support browsers that don't support websockets anymore (they've been standard for years now). I made a websocket library but you can use anything.
     
    If you want to protect your server from having its direct IP exposed, you could use Cloudflare. They support websockets even on the free plan.
  18. Like
    Dr. McKay got a reaction from ArthuraDarse in How to get a images or items names in this new version   
    Should work the same way.
  19. Like
    Dr. McKay got a reaction from exellian in Get node-steam client Object for node-csgo from node-steam-user   
    There is no other way to do it. Steam imposes limits on how frequently you can send inspect requests.
  20. Like
    Dr. McKay got a reaction from bagda391 in Restrict trade link   
    You can use the url module to parse the URL, then you'd want to check the domain, path, etc.
  21. Like
    Dr. McKay got a reaction from Jelezuha in Cann't send trade PUBG item   
    The item ID is wrong.
  22. Like
    Dr. McKay got a reaction from TextDynasty in Timeout overflow warning   
    Make sure all your modules are up to date. Run 'npm update'.
     
    And I mean to make sure your timer doesn't exceed 231.
  23. Like
    Dr. McKay got a reaction from Nabil in How to get float value with only assetid?   
    Use the SteamID to pull their inventory from Steam to get the inspect link, then use that to get the wear.
  24. Like
    Dr. McKay got a reaction from Vanilla in Redeem Wallet Code?   
    https://github.com/DoctorMcKay/node-steamstore#redeemwalletcodewalletcode-callback
  25. Like
    Dr. McKay got a reaction from AJ4X in Unable to get trade details after Decline, Expire or Canceled   
    How could it get details for the item exchange if there was no item exchange?
×
×
  • Create New...