Jump to content
McKay Development

SP0OK3R

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by SP0OK3R

  1. var SteamUser = require('steam-user');
    var SteamTotp = require('steam-totp');
    var config = require('./config.json');
     

    // SaveStrings
    var Username = config.username;
    var Password = config.password;
    // SaveStrings

    var client = new SteamUser();

    //Small fix: Dual-Session Chat, pervents from see Friends offline;
    function SteamPersonaRestart(){client.setPersona(0);client.setPersona(1);}

    client.logOn({
    "accountName": Username,
    "password": Password,
    "machineName": Username,
    "twoFactorCode": SteamTotp.generateAuthCode(config.Phone_secret)
    });

    client.on('loggedOn', function (details) {
    client.setPersona(1);
    console.log("LOGGED");
    });
     
    var sid= "76561198041931474";
    client.getChatHistory(sid)

    client.on('chatHistory', function(steamid, success, messages){
    console.log(messages)
    console.log(success);
    })

     

    nothing appers

×
×
  • Create New...