Jump to content
McKay Development

Naleksuh

Member
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

747 profile views

Naleksuh's Achievements

  1. Hi, Is there an issue causing some bots to not be able to use an API key, or something else? I am having the most bizarre issue, and can't find the cause For whatever reason, after my bot logs in, I need the cookies and API key for trade manager, but the code: client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get o> return; } console.log("Got API key: " + manager.apiKey); }); community.setCookies(cookies); }); never fires. To make things weirder, it fires just fine for a different bot that I own. I tried copying the node_modules from that bot over (I once was unable to trade because I had an outdated copy) but it still didn't work. After experimenting for a while my IP address was 429-rate limited. So I ran the bot from a different IP address and that one as rate limited almost immediately. The next morning, the 429 had been removed, but when I tried running the bot again it immediately returned. If anyone knows what is going on, please help! I haven't been able to do anything and I know this post is incredibly vague, but it's so difficult to experiment since you'd have to wait 12 hours for anything. I know little more than what is here. Please help :(
  2. Recently I'm having a problem where my bots get knocked offline and need to re-login, but when they do so, Steam rejects the guard code, and node-steam will not retry or restart or quit but instead just sit there in the GUI asking for a code. This is a problem because it can keep my bots offline for hours, and if they didn't restart every day keep them offline forever just because of some connection issues. Bots are by definition automated so there should never be a requirement for CLI input. Is there an option to restart the bot or retry Steam Guard upon failure, and if not can one be added?
  3. Anyone knows how to do this?
  4. Can you add a method for removing the "Crafted by...." text on crafted items? Also, does the craft recipe take a string or a number?
  5. It looks like in order to fix this problem, you just need to set polldata.json to {} - so I guess the purpose of that file was to avoid doing exactly the thing I wanted to do? Kind of ironic, but different people code in different ways!
  6. It looks like the "new offer" event doesn't fire for pending offers when the bot starts up. How can I ensure that all of those are processed when the bot starts up? I have noticed that the script creates a polldata.json file, but despite this, it never fires the trade offers while the bot is down. I guess this is to avoid duplicate trade offer processing, but this could be avoided by just not processsing them before it shuts down. So, does anyone know how to handle something like this?
  7. Update: it's been 9 months since my last post (11 months total), and it has happened a third time. I can confirm that restarting my own steam client does fix it. So, it seems like restarting the bot just pushes a refresh, and really only Valve can fix this. However, it might be something in the bot that is triggering it initially
  8. What Dr. McKay means here is that bots that interact with counter-strike are not possible using node-steam...you could accomplish this using a variety of other libraries though
  9. I did not try that, only tried restarting the bot (which fixed it). It's possible it fixed it not on the bot's end, but by sending a status change event. If this happens again, I will try restarting my Steam client and see if that fixes it.
  10. It's been around two months, but it happened again. Interestingly enough, it's ingame as it should be when actually viewing the profile, but shows as Online from Steam Friends. This leads me to believe it's neither a bug with my code, nor a bug with the library, but with steam itself. Restarting the bot fixed this error, but it is something to be on the lookout for.
  11. It's public and free (TF2). Like I said, it was working fine for several months then with no changes randomly stopped, which is why I strongly believe it is something in the third-party. However, I reinstalled the repository and that seemed to fix it. It could have been a change to there.
  12. Recently, client.gamesPlayed randomly stopped working for me. Everything else works fine, but the bot is online and not in-game. I have not made any changes to my code in several months when it just randomly stopped working, and it appears McKay last contributed to the repository six days ago, leading me to believe the problem is a change to steam's API. Has anyone else encountered this strange error?
  13. This is a public bot used intended for use in chat i don't moderate. Can't really act like that won't happen. Is there a problem with only tracking them when the needed method is called?
  14. This does seem that it will technically work, but rather complex and inconsistent (i.e. data being changed after startup). I'd prefer if there was a direct method, i.e client.chat.userHasPermission(steamid64, chat_id, permission_string) , but I guess this is fine too. Could you consider adding it in a future version, though?
  15. How can I check if a user has a permissions? There doesn't seem to be any method for it at all. I can't even find out whether or not a user has a role or what that role would do. Specifically, I want to make a command only do something if a user has the "Add and Delete Channels" permissions
×
×
  • Create New...