Jump to content
McKay Development

Recommended Posts

Posted (edited)

proxy_url = http://test:[email protected]:6049

const httpAgent = new HttpProxyAgent(proxy_url);

const httpsAgent = new HttpsProxyAgent(proxy_url);

const requestInstance = require('request').defaults({

proxy: proxy_url

agent:{

http: httpAgent,

https: httpsAgent

},

timeout:30000

});

let community = new SteamCommunity({
        request: requestInstance,
        httpAgent: httpAgent,
        httpsAgent: httpsAgent,
        localAddress: null
    });
    let manager = new TradeOfferManager({
        steam: client,
        community: community,
        language: 'en',
        pollInterval: 10000,
        cancelTime: 300000,
        pendingCancelTime: 300000,
        globalAssets: false,
        savePollData: false,
        requestOptions: {
            proxy: proxy_url,
            agent: {
                http: httpAgent,
                https: httpsAgent
            },
            localAddress: null
        }
    });       

manager.on('newOffer', (offer) => {
            if (offer.itemsToGive.length === 0 && offer.itemsToReceive.length > 0) {
                if (offer.state === TradeOfferManager.ETradeOfferState.Active) {
                    offer.accept((err, status) => {
                        if (err) {
                            acceptErrorCount++;
                        } else {
                            acceptSuccessCount++;
                        }
                    });
                } else {
                    console.log('skip.');
                }
            } else {
                console.log('deny.');
                offer.decline();
            }
        });




hi, i have proxy and it working well until proxy timeout (die), this connection redirect to my main ip, did i set up wrong or something? thank you and have a nice day

Edited by kimyuhuu
Posted (edited)

Hi guys, how can i avoid this? Its literally like this image for my 100 account, then i'm not using community and manager lib until now it already fine but i cannot accept gift. Thank you and have a nice day

image.png

Edited by kimyuhuu

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