Eanna5 Posted February 11, 2017 Report Share Posted February 11, 2017 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. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 11, 2017 Report Share Posted February 11, 2017 Is the bot online? Quote Link to comment Share on other sites More sharing options...
Eanna5 Posted February 11, 2017 Author Report Share Posted February 11, 2017 Thank you very much!Sorry for wasting your time, you were right it was executing the code so fast that the bot wasn't fully logged in by the time I reached this part.Thank you! 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.