I need to make sure the recipient is online before I message him. I have loooked for this and this is what I found:
client.getPersonas([SteamID], function (persona) {
PersonaState = persona[SteamID].persona_state;
console.log(PersonaState);
This returns null no matter what state I set for myself. I am very new to node. Not sure where to look, there are no errors in the code. I am friends with the bot and he is able to message me and recieve my messages. It works but I dont want him sending me message when my account is offline which it currently does.