Jump to content
McKay Development

Revadike

Member
  • Posts

    98
  • Joined

  • Last visited

Posts posted by Revadike

  1. I've made it log all debug events and this is the log: https://pastebin.com/EZRG8xm3

    It repeats every 2 minutes, until it finally works. Sometimes it works at first try, but often it takes several tries. 

    loggedOnSteam only gets logged on loggedOn event. And signedIntoBarter only gets logged ONCE websession.

    This is my login config (un and pass omitted)

    { accountName: 'xxx',
      password: 'xxx',
      twoFactorCode: 'XXX',
      logonID: 1551653434369,
      rememberPassword: true,
      dontRememberMachine: false,
      autoRelogin: true,

      machineName: 'BOT@CLIENT' }: 

     

    WebSocket disconnected with error: Ping timeout

    This seems to cause it, or at least be related with it.

  2. Something weird is happening. I updated my bot to work with your latest steam packages. However, sometimes it seems like something inside steam-user gets stuck. Sometimes it works just fine, but other time it will only emit loggedOn and websession events. All other events are not emitted. And that's not all. I expect loggedOn to be only emitted once, since in my code I only login once, however when these other events are not emitted, loggedOn gets emitted every 2 minutes. Any idea what's going on?

    1. Log into your steam account via node
    2. Keep track of a message counter for each person you chat with
    3. Reset the counter every minute or so
    4. In the event a person sends you a chat message, check the counter for your defined threshold and if it exceeds it, instablock that person

    PM me, if you want to pay me to make this for you :)

  3. So, I've tried the use of proxies quite a few time, but I found out none or very little of the free proxies that I can gather, actually works.

    On the contrary, any arbitrary free VPN works great with node-steam (and steam client).

    I'm not well educated on the topic of proxies and VPN's, but what is so different, that free proxies not work, while free VPN's do?

    Is there such a thing as a virtual/local VPN, which we can use instead of a proxy (thus not affecting all network traffic, as a normal VPN would)?

  4. Okay, forgive me, but I am a bit confused about this. I've tried looking for better examples or documentation, but it didn't clear things up for me.

    I have a few questions:

    1. Is the id property of a gift object (e.g. an item from gifts from the gifts event) the same as an assetid of an CEconItem? You seem to use these terms interchangeably in your documentation, but I am not sure.
    2. Without knowing the answer of the first question, can/should you use community.redeemGift with the gift.id as first parameter?
    3. Let say I am doing the thing question 2 is asking about, in the gifts event. Why is it that after sending a trade offer where I'd receive a steam gift, not automatically redeem a steam gift when offer is accepted? *
    4. What should I do for the scenario mentioned in question 3, or if I receive a trade offer with 1 or more steam gifts, which I accept (using trade offer manager)? *

    * I realized that the gifts event is only for when gifts are sent directly to me, and not via trade offers (as they get sent to inventory).

    So, in case of trade offers, after accepting a trade with trade offer manager, I should use offer.getReceivedItems to check if they contain steam gifts and redeem them?

    How do I do that exactly? I assume I check for some property of CEconItem item of the received items to see if it's a steam gift and then use community.redeemGift(item.assetid, ...)? But which property and what value? **

     

    ** Found out I should check for property type (https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#type) with value  Gift.

    Should I only call offer.getReceivedItems after trade offer has been accepted AND confirmed? Or can you do it also for unconfirmed accepted?

×
×
  • Create New...