Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
client.on('loggedOn', () => {
client.setPersona(SteamUser.Steam.EPersonaState.LookingToTrade, config.botName);
client.gamesPlayed(440);
console.log(colours.bgGreen(config.botName) + ' is online and looking for trade.'.green);
});
client.on('webSession', (sessionid, cookies) => {
client.on('loggedOn', () => {
client.setPersona(SteamUser.Steam.EPersonaState.LookingToTrade, config.botName);
client.gamesPlayed(440);
logger.correct(`${config.botName} is online and looking for a trade`);
});
var SteamUser = require('steam-user');
var Steam = SteamUser.Steam;
var request = require('request');
var Cheerio = require('cheerio');
var fs = require("fs");
var client = new SteamUser({"enablePicsCache": true,"promptSteamGuardCode":false});
var Electron = require('electron');
var Main = Electron.remote.require('./main.js');
var g_Jar = request.jar();
request = request.defaults({"jar": g_Jar});
var g_Page = 1;
var g_Start;
var g_CheckTimer;
var g_OwnedApps = [];