Ferriar_幽助 Posted September 28, 2017 Report 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
Ferriar_幽助 Posted September 28, 2017 Author Report 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
Ferriar_幽助 Posted September 28, 2017 Author Report Posted September 28, 2017 solved.i should try to do this after i get my bot apiKey. Ferriar_幽助 1 Quote
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.