Jump to content
McKay Development

v4 question


Froxz

Recommended Posts

Hi,

Currently I'm using v3 version:
 

const Steam = require('steam-client');
const SteamUser = require('steam-user');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');

let client = new Steam.CMClient();

client.setHttpProxy(proxyUrl);

let user = new SteamUser(client, {
	debug: true,
	singleSentryfile: false,
	autoRelogin: true,
	dataDirectory: '/files/clients'
});

let community = new SteamCommunity();

let manager = new TradeOfferManager({
	steam: user,
	community: community
});

And in v4 I should change to:

 

const SteamUser = require('steam-user');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');

let user = new SteamUser({
	debug: true,
	singleSentryfile: false,
	autoRelogin: true,
	dataDirectory: '/files/clients'
});

user.setHttpProxy(proxyUrl);

let community = new SteamCommunity();

let manager = new TradeOfferManager({
	steam: user,
	community: community
});

Can you advice please?

NOTE: so v4 node-user replaces steam-client?

Link to comment
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.

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