Jump to content
McKay Development

Check if user is online before sending message


Eanna5

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...