Jump to content
McKay Development

SENPAY98K

Member
  • Posts

    47
  • Joined

  • Last visited

Posts posted by SENPAY98K

  1. Is it possible to use steamcommunity to send a message ?

    Like using Steam Chat inside steamcommunity to send a message.

                    const logOnOptions = {
                        accountName: item.split(":")[0],
                        password: item.split(":")[1],
                        twoFactorCode: SteamTotp.generateAuthCode(item.split(":")[2])
                    };
                    community.login({
                        "accountName": logOnOptions.accountName,
                        "password": logOnOptions.password,
                        "twoFactorCode": logOnOptions.twoFactorCode
                    },
                        function (err, sessionID, cookies) {
                            if (err) {
                                console.log('Error in loggOn');
                            }
                            if (!err) {
                                    console.log('   [%s] Successfully Logged On (SteamID: %s)', logOnOptions.accountName, community.steamID.getSteamID64());
                                    
    								community.chatMessage('76561198097242611', ':steamhappy:', function (err, res, data) {
                                      if (err) {
                                        console.log('   [%s] TASK11: xxxxxx FAIL'.red, logOnOptions.accountName);
                                      }
                                      if (!err) {
                                        console.log('   [%s] TASK11: yyyyyy DONE'.green, logOnOptions.accountName);
                                      }
                                    });

    In the output say you can't send message, not logged in !

  2. 8 hours ago, Dr. McKay said:

    Use community.steamID.getSteamID64(); no need to call getSteamUser to get your SteamID.

    Logging into a different account with the same SteamCommunity instance that was previously logged in isn't really supported. You should create a new SteamCommunity each time.

    Great, works exactly as expected :D

    I guess other CSteamUser function works with community as well since its contained inside steamcommunity module,

    am i wrong?

  3. Hi, is there a possiblity to get steamId64 [76561198097242611] for the current loggedIn account with (steamcommunity) ?

    Searched on the github for that and found that its used on CSteamUser, and other parts of the library together with `steamid` module.

    Im using async in the script to loop many accounts for some actions, and cant there is no way to put id for each account.

    Is there anything to replace '????' with current loggedIn account such as with sessionID or cookies...

    Edit:

    CSteamUser works with steamcommunity module √

     

  4. What am i doing wrong in here ?

                                form: {
                                    sessionid: sessionID,
                                    currency: 1,
                                    appid: 440,
                                    market_hash_name: 'Mann Co. Supply Crate Key',
                                    price_total: config.KeysTotalPrice,
                                    quantity: config.KeysQuantity,
                                    billing_state: '',
                                    save_my_address: 0
                                },
                                headers: {
                                    'Origin': 'https://steamcommunity.com',
                                    'Referer': 'https://steamcommunity.com/market/listings/440/Mann%20Co.%20Supply%20Crate%20Key'
                                },
                                json: true
                            };

  5. 3 hours ago, Dr. McKay said:

    Your proxy refused your connection.

    Thanks for the fast reply

    Now i should use steam-user library for connecting, but i am still confused if it is really using the proxy.
    Is there a way to check if the steam-user library is using a proxy or not ? something that log the currect ip maybe!

  6. 8 hours ago, Dr. McKay said:

    Check what the actual error message is in the err.

    Here's the error

    BOOSTSENPAY00 Logged into Steam
    -------------------------------
    BOOSTSENPAY01 Unable To Auth
    Error: tunneling socket could not be established, cause=connect ECONNREFUSED 144.202.113.90:8080
        at ClientRequest.onError (C:\Users\SENPAY98K\Desktop\test\node_modules\tunnel-agent\index.js:177:17)
        at Object.onceWrapper (events.js:482:26)
        at ClientRequest.emit (events.js:375:28)
        at TLSSocket.socketErrorListener (_http_client.js:475:9)
        at TLSSocket.emit (events.js:375:28)
        at emitErrorNT (internal/streams/destroy.js:106:8)
        at emitErrorCloseNT (internal/streams/destroy.js:74:3)
        at processTicksAndRejections (internal/process/task_queues.js:82:21) {
      code: 'ECONNRESET'
    }

    image.thumb.png.6c6631e63630e79b1c2cc3e3e7c3b371.png

     

  7. I am trying to connect my bots with proxies but all i get is Auth Error with community module,
    while it logs successfully with client module but i don't know if the proxy works or ignored.
    @Dr. McKay Could you check if iam missing something?
     

    // Modules
    const request = require('request');
    const Steam = require('steam-client');
    const SteamUser = require('steam-user');
    const SteamTotp = require('steam-totp');
    const SteamCommunity = require('steamcommunity');
    const TradeOfferManager = require('steam-tradeoffer-manager');
    const config = require('./config.json');
    
    let proxyUrl = 'https://144.202.113.90:8080';
    
    let proxifiedRequest = request.defaults({ 'proxy': proxyUrl });
    let community = new SteamCommunity({ request: proxifiedRequest });
    
    let ProxyClient = new Steam.CMClient();
    ProxyClient.setHttpProxy(proxyUrl);
    let client = new SteamUser(ProxyClient);
    
    const manager = new TradeOfferManager({
      steam: client,
      community: community,
      language: 'en'
    });
    
    const logOnOptions1 = {
      accountName: config.accountName0,
      password: config.password0,
      twoFactorCode: SteamTotp.generateAuthCode(config.twoFactorCode0)
    };
    
    client.logOn(logOnOptions1);
    
    client.on('loggedOn', () => {
      console.log('BOOSTSENPAY00 Logged into Steam');
      console.log('-------------------------------');
      client.setPersona(SteamUser.EPersonaState.Online);
      client.gamesPlayed(440);
    });
    
    community.login({
      accountName: config.accountName1,
      password: config.password1,
      twoFactorCode: SteamTotp.generateAuthCode(config.twoFactorCode1)
    }, function (err, sessionID) {
      if (err) {
        console.log(config.accountName1 + ' Unable To Auth');
      };
      if (!err) {
        console.log(config.accountName1 + 'Successfully Logged On sessionID: ' + sessionID);
      };
    });

    OUTPUT:
    image.png.b6070fb0c79c26edba1c7eef417e7a06.png

  8. 3 hours ago, Jack Nolddor said:

    Inventory is an array of items, you can use .filter() over the collection to keep just the item(s) you need.

     

    An excerpt from my bot code:

    static isGems(item) {
    	return '753-Gems' === item.market_hash_name;
    }
    
    static isSackOfGems(item) {
    	return '753-Sack of Gems' === item.market_hash_name;
    }

    Then, just use the .amount property to decide how many items you want to add to the trade for those which are stackeable like gems or sack of gems.

     

    I already found how to do it with context-id-amount. Thanks tho :)

×
×
  • Create New...