Jump to content
McKay Development

Baterka

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Baterka

  1. I have small dilema on my new bot what I am making.

    I have this communication between jackpot server and bot by REST API:

     

    Steam new incoming offer -> bot -> resend to jackpot server for validation -> jackpot server answers accept/decline -> if accept bot send to jackpot accepted offer object -> jackpot server do his work

     

    "if accept bot send to jackpot accepted offer object" - Here I have dilema.. Wait for accept callback, or use receivedOfferChanged event to get callback? I know waiting for callback is littlebit faster but is it 100% correct? Will it catch always? Same question for receivedOfferChanged.

     

    Thanks for help or suggestion how you guys (or Meredith McKey xD) do this kind of bot.

  2. Sorry, But i tested it like this:

    var connection = new Steam.SteamClient();
    var client = new Steam.SteamUser(connection);
    var manager = new TradeOfferManager({
       "steam": client,
       "domain": domain,
       "language": "en",
       "cancelTime": cancel_time,
       "pendingCancelTime": cancel_time
    });
    var community = new SteamCommunity();
    var logOnOptions = {
       "account_name": login_username,
       "password": login_password,
       "two_factor_code": SteamTotp.getAuthCode(login_secret)
    };
    
    
    client.logOn(logOnOptions);

    and I am getting errors now:

     

    this._connection.send(Buffer.concat([header.toBuffer(), body]));
                      ^
    TypeError: Cannot read property 'send' of undefined
    

    Is anything different when I use 'steam' ? I just used 'steam-user' before

×
×
  • Create New...