Jump to content
McKay Development

Managing multiple accounts

Recommended Posts

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' => {

What would be the best practice for this situation? Thanks in advance!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...