greybonez
-
Posts
2 -
Joined
-
Last visited
Posts posted by greybonez
-
-
sorry to necro this thread but I have a similar issue when trying to capture the 'friendMessage' event when using steam-user.
what I have:
var SteamUser = require('steam-user'); // The heart of the bot. We'll write the soul ourselves. var client = new SteamUser(); client.on('friendMessage', function(steamID, message) { console.log("Friend message from " + steamID.getSteam3RenderedID() + ": " + message); });
This is just a snippet of my js file. I do successfully login, create web sessions / cookies etc. but for some reason this event doesn't fire when I send a message to 'client'. I have two steam accounts which I log in to in order to test the friendMessage event. Could the issue be that the accounts are from the same IP? Also, I have confirmed that the messages are sent and received.
steam-user
in node-steam-user
Posted
That fixed the issue. Thanks for being so helpful! For my own sanity, how do you know that the client needs to be 'online' in order to receive this message (I didn't see anything in the docs about this)?