Jump to content
McKay Development

Recommended Posts

Posted

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

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