constructor(details, db) {
this.user = new SteamUser({
machineIdType: 3
});
this.community = new SteamCommunity({
request: this.request,
userAgent
});
this.manager = new TradeOfferManager({
steam: this.user,
community: this.community,
domain: process.env.logInDomain,
language: 'en'
});
this._jar = this.community._jar;
this._logInDetails = details;
this.user.on('error', () => {
this.logOut();
});
this.user.on('loginKey', loginKey =>
db.update('Bots', { accountName: details.accountName }, { loginKey }));
this.community.on('sessionExpired', () =>
this.completeLogin(false));
}
"steam-tradeoffer-manager": "^2.10.2"
"steam-user": "^4.16.2"
"steamcommunity": "^3.41.4"