Jump to content
McKay Development

Recommended Posts

Posted

Is there a way to kick off auto confirmations with the node steam tradeoffer manager instead of creating another steam-community instance? Reading through the docs it says tradeoffer-manager creates a node-steam-community by default if an instance isn't applied to the constructor. If that's the case - but I didn't see any prototype functions that allow for this functionality. 

 

The use case scenario is to auto confirm trades with my bot when I send users item requests.

 

Thanks!

Posted

So passing it in exposes the community methods on the trade manager object? like such?

	
        var myCommunity = new SteamCommunity();
        
        var client = new SteamUser();
	var offerMananger = new TradeOfferManager({
		steam:        client,
		language:     "en",
		cancelTime:   300000,
                community:    myCommunity
	});

Assuming I logged in with my creds and 2fa would I listen for the confirmation events by calling offerManager.on('newConfirmation', function(){})? or offerManager.community.on() like so?

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.

Guest
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.

Loading...
×
×
  • Create New...