Closed ProbablyPeps closed 7 years ago
At the moment this is "normal" behavior of the bot. Check index.js at line 46. I set the personaname to the account name. I'm going to have to add a parameter to the logindetails for that.
The reason why setting the persona name in your code works once in a while is because of how node js handles events. When an event fires, it will call all its listeners in random order. So if your listener gets called after the bot's, then the persona name is changed. If it's the other way around it isn't changed. What you could do is attach your listener to the ready
event instead (with a once call), that way you're sure your handler will be called after the bot's.
Hey duck.
Thanks for the reply, unfortunately i got this attached code written to me, cause i know coding as much as a potato. Would it be a huge favour to ask: if you could insert this line into the correct place into my code please? ^^
It's already updated on the master branch, I just need to push it to npm
Hi. (Sorry for posting in wrong repo last time)
My bot keeps changing it's name back from Profile name -> Steam account name every time it goes online. Even if im using dota.steamFriends.setPersonaName("Profile name"); it gets changed :( If i log into account and change manually it will stay that way, but get changed back almost every time at login. (not always..dont know why)
Here is a screenshot of what happens when i run the bot: https://cloud.githubusercontent.com/assets/25479451/23907362/28034a54-08d1-11e7-95b3-5103e02aaf49.png