SP0OK3R Posted May 6, 2017 Report Share Posted May 6, 2017 Hello, var aaaaaaaaaa= "76561198041931474";client.on('getchatHistory', function(aaaaaaaaaa, callback) {console.log(callback);}); It doesn't return anything. Quote Link to comment Share on other sites More sharing options...
SunriseM Posted May 6, 2017 Report Share Posted May 6, 2017 Are you using the method getChatHistory? Also the event name is chatHistory. First you have to use the method client.getChatHistory(aaaaaaaaa) Then you can listen to the event client.on('chatHistory', function(steamid, success, messages){ console.log(messages) }) Please read all the Documentation. Quote Link to comment Share on other sites More sharing options...
SP0OK3R Posted May 6, 2017 Author Report Share Posted May 6, 2017 no output, Quote Link to comment Share on other sites More sharing options...
SunriseM Posted May 6, 2017 Report Share Posted May 6, 2017 no output,add console.log(success) and see what it outputs. Also put how your code looks now here. and try writing the event listener before the method. Maybe the event is being emitted before the listener starts working Quote Link to comment Share on other sites More sharing options...
SP0OK3R Posted May 6, 2017 Author Report Share Posted May 6, 2017 var SteamUser = require('steam-user');var SteamTotp = require('steam-totp');var config = require('./config.json'); // SaveStringsvar Username = config.username;var Password = config.password;// SaveStringsvar 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 Quote Link to comment Share on other sites More sharing options...
SunriseM Posted May 6, 2017 Report Share Posted May 6, 2017 var SteamUser = require('steam-user');var SteamTotp = require('steam-totp');var config = require('./config.json'); // SaveStringsvar Username = config.username;var Password = config.password;// SaveStringsvar 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 Did you try writing the client.on('chatHistory',..) part before client.getChatHistory? Revadike 1 Quote Link to comment Share on other sites More sharing options...
SP0OK3R Posted May 6, 2017 Author Report Share Posted May 6, 2017 yes,i tryed and dont work Quote Link to comment Share on other sites More sharing options...
SunriseM Posted May 6, 2017 Report Share Posted May 6, 2017 yes,i tryed and dont work Well i don't see nothing wrong on it. There's other option. Try with: client.getChatHistory(sid, function(success, message){ console.log(success); console.log(message); }); Quote Link to comment Share on other sites More sharing options...
SP0OK3R Posted May 9, 2017 Author Report Share Posted May 9, 2017 nothing... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.