After some time having trouble with it (as I am new), I got it to work! Thanks so much dude! for everyone else wondering.. I used this:
client.on('friendMessage', function(steamID, message) {
friendID = [steamID];
client.getPersonas(friendID, function(getName) {
var x = getName[friendID];
var friendName = x.player_name;
console.log("[FriendlyMessage] " + friendName + ": " + message);
}
});
Brackets could be wrong because my code didn't stop there and I am correcting it within the text editor
I do have another question and I don't know if I should ask it here? But, what are the numbers for friendrelationships?? I know 2 is friend request send to me. But where can I find it.. because I am having trouble finding everything...
EDIT: After actually turning my brain on.. I checked within the files of your node and found a file with the numbers.... Shit I'm stupid... Thanks anyway!! GREAT SHIT DUDE!!!