0x737368 Posted June 5, 2017 Report Share Posted June 5, 2017 So say I've got a friend request, and I want the bot to accept all incoming friend request. To use the acceptFriendRequest method I need the steamID to use the getSteamUser method. How could I get it? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted June 5, 2017 Report Share Posted June 5, 2017 There isn't currently a way to get incoming friend requests using node-steamcommunity. Is this something you need? If you're also using node-steam-user then you can get invites from there. Quote Link to comment Share on other sites More sharing options...
0x737368 Posted June 5, 2017 Author Report Share Posted June 5, 2017 There isn't currently a way to get incoming friend requests using node-steamcommunity. Is this something you need? If you're also using node-steam-user then you can get invites from there.It's not something I strictly need but would be a nice thing to do. In node-steam-user, would that be the friendRelationship event? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted June 5, 2017 Report Share Posted June 5, 2017 Correct. Quote Link to comment Share on other sites More sharing options...
0x737368 Posted June 5, 2017 Author Report Share Posted June 5, 2017 (edited) Correct.Yeah, so I wrote this but it's giving me a HTTP 400 error, what could be the problem?https://pastebin.com/y5XQUBvL (sorry, the text editor here collapses all my spacing, making the code unreadable) The error happens after user.acceptFriendRequest I'm certain that the user object is correct as user.name gives the correct nickname of the user, so it must be something with how I'm calling the method Edit, nvm, there was a problem with how I was triggering the acceptFriendRequest Edited June 5, 2017 by 0x737368 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.