Jump to content
McKay Development

Naleksuh

Member
  • Posts

    21
  • Joined

  • Last visited

Posts posted by Naleksuh

  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. 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?

  4. 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

  5. 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.

  6. It's been around two months, but it happened again.

    image.thumb.png.3455779fff0ed26ca7c6b1cb67b7546e.png

    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.

  7. 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.

  8. 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?

  9. Quote

    The only issue should be if you get a new moderator or if you change roles

    This is a public bot used intended for use in chat i don't moderate. Can't really act like that won't happen.

     

    Quote

    I'm not sure I'll ever end up adding a method like you suggest though, since that would require steam-user to keep knowledge of chat rooms' states (it doesn't currently), although I can see how that would be useful.

    Is there a problem with only tracking them when the needed method is called?

  10. 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?

  11. 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

  12. The module itself is definitely supported. There are some deprecated methods and such, but only because newer things have replaced them.

     

     

    but its confusing

    I did a test myself and I got about a half-second round-trip time, counting from when I hit enter and stopping when my bot responded to me. That doesn't seem unreasonable to me.

    but other bots do it faster

    I just haven't gotten around to adding a feature to ban people from a group chat yet. If that's something you need, I'll see if I can prioritize it.

    yes it is, thank you

  13. I don't know why you would call this a "legacy module", but any lag is on your end. Either in your code, or in your connection to Steam.

    I called it a legacy module because it contains a lot of depracated functions. Also, I can connect to stuff like discord and youtube faster than most other people which I thought it might be the module. I will try running it on a dedicated computer with nothing else on it and see if that speeds it up

     

    Also, why is there no function for banning people from a group chat?

  14. Why is this node module so much lag? When I type command it takes my bot slower than usual to reply, like 3/4th of a second, even when I see other bots on steam reply in like a tenth of a second.

     

    My bot isn't even that complicated and i'm running it on a pretty powerful computer. Is there anything else that I might be do wrong or is this what i get for using a legacy module

×
×
  • Create New...