Jump to content
McKay Development

budysvk

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by budysvk

  1. Hello. Can you help me please? I have a problem with checking tradeoffer state

    This is what i use

    	var tid = req.query['tid'];
    	offers.getOffer({
    		tradeofferid: tid
    	}, function(err, trade) {
    		if(err) {
    			logger.error('Error checking trade');
    			logger.debug(err);
    			res.json({
    				success: false,
    				error: err.toString()
    			});
    		} else {
    			if(trade.response.offer.trade_offer_state == 3) {
    				res.json({
    					success: true,
    					action: 'accept',
    					result: 'Success'
    				});
    			} else if(trade.response.offer.trade_offer_state == 7) {
    				res.json({
    					success: true,
    					result: 'Declined',
    					action: 'cross'
    				});
    			} else {
    				res.json({
    					success: false,
    					error: 'Not Accepted Yet'
    				});
    			}
    		}
    	});
    

    And it always gives me error: TypeError: Cannot read property 'trade_offer_state' of undefined but it is defined in your documentation.

    Thanks.

  2. Hello. I would like to thanks everyone for helping me first. I am really glad.

     

    I have a problem with steam bot. The problem is that he logs in normally than refreshing sessions etc everything is okay but after 2 days or more when refreshing session i get error Invalid RSA key recieved and than it ends. So I need to start it manually again.

     

    community.on('sessionExpired', function(err) {
    	if (err) {
    		console.log('sessionExpired: '+err);
    	}
    
    	community.stopConfirmationChecker();
        SteamTotp.getTimeOffset(function(err, offset, latency) {
        account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset);
    	community.login(account, login);
    	});
    	console.log('=========================REFRESHING SESSION=========================');
    });
    

    There is my code. 

     

    Thank you very much for fast reponse.

     

  3. Okay , now i am using community.login(account, login); when my session end , but only sometimes i cant log with bot, It says error in steamguard, my code: 

        SteamTotp.getTimeOffset(function(err, offset, latency) {
        account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset);
    	account.auth = false;
    	logger.debug(account);
    	community.login(account, login);
    	});
    

     i can login when i run node but when trying refresh session:

    community.on('sessionExpired', function(err) {
    	if (err) {
    		console.log('sessionExpired: '+err);
    	}
    
    	community.stopConfirmationChecker();
    	community.login(account, login);
    	console.log('=========================REFRESHING SESSION=========================');
    });
    

    It says: Error SteamGuard , only sometimes, and sometimes trying to log many times and display error: Too many attempts

  4. Hello I am having other error. Code:

    
    community.on('sessionExpired', function(err) {
    	if (err) {
    		console.log('sessionExpired: '+err);
    	}
    
    	community.stopConfirmationChecker();
    	client.webLogOn();
    });
    

    And error in console: client is not defined. How to call weblogon function please? Thanks

×
×
  • Create New...