orcnaydn Posted September 15, 2018 Report Posted September 15, 2018 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();}); Quote
ArturkA Posted November 22, 2018 Report Posted November 22, 2018 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'. Quote
Recommended Posts
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.