Jump to content
McKay Development


  • Content Count

  • Joined

  • Last visited

  1. Hi, I am making a bot that can will manage my accounts. Currently I am having problems with an idea of storing mulltiple account classes (or instances). The best way probably is to create an array, but I am concerned if this approach will let accounts receive events like incoming messages? let accounts = []; function addAccount(username, password){ client = new Steam() client.logOn({username, password}); client.on('loggedOn' => { accounts.push(client) } } What would be the best practice for this situation? Thanks in advance!
  • Create New...