Ferriar_幽助 Posted September 28, 2017 Report Share Posted September 28, 2017 the following is my code. client.on('friendRelationship', function (steamID, relationship) { if (relationship == SteamUser.Steam.EFriendRelationship.RequestRecipient){ steamID == "76561198253857131"; client.addFriend(steamID); } }) for example.my friend's SteamID64 is 76561198253857131.but the code seems not executed.how to deal with the pro. Quote Link to comment Share on other sites More sharing options...
Ferriar_幽助 Posted September 28, 2017 Author Report Share Posted September 28, 2017 there is the another way i do this . client.addFriend("76561198253857131", function (err, name) { if(err){ console.log(err); return; }else { console.log("用户å:",name); } }); but it also seems not work. does someone help me. thinks a lot. Quote Link to comment Share on other sites More sharing options...
Ferriar_幽助 Posted September 28, 2017 Author Report Share Posted September 28, 2017 solved.i should try to do this after i get my bot apiKey. Ferriar_幽助 1 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.