Jump to content


Photo
Question

Error Not Logged in

node.js node-steam-tradeoffer-manager

  • Please log in to reply
1 reply to this topic

#1 orcnaydn

orcnaydn

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 15 September 2018 - 06:42 AM

How to fix it i try all webLogOn script but dont working ı use this commands;

 

const async = require('async');
 
const TradeOfferManager = require('steam-tradeoffer-manager');
var manager = null;
 
const SteamCommunity = require('steamcommunity');
var community = null;
const WebAPI = require('@doctormckay/steam-webapi');
var api = null;
const SteamID = require('steamid');
 
const steam = require('./steam');
const users = require('./users');
const files = require('./files');
 
var first = true;
var ongoing = false;
 
exports.setup = (client, cookies, callback) => {
manager = new TradeOfferManager({
steam: client,
domain: "example.net"
});
community = new SteamCommunity();
 
manager.setCookies(cookies);
community.setCookies(cookies);
api = new WebAPI(files.getConfig().apikey);
if(first) {
callback();
first = false;
}
registerEvents();
 
community.on("sessionExpired",function(err) {
client.webLogOn();
});


#2 ArturkA

ArturkA

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 22 November 2018 - 11:47 AM

Try handle 'webSession' from 'steam-user' he pass 'sessionId' and 'cookies' which you can set to 'steam-tradeoffer-manager' and 'steam-community' using function 'setCookies'.







Also tagged with one or more of these keywords: Question, node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users