Slime Posted March 29, 2019 Report Posted March 29, 2019 (edited) I've tried sending all my friends a message. so i made a function for that: function messageAllCommand() { var messageAll = readlineSync.question('Enter message: '); for (var friend in client.myFriends) { console.log(friend); client.chatMessage(friend, messageAll); } }but somewhy, it seems really random who gets the message tho it prints everyone's id it but still don't send everyone the message.here are the ID's:https://pastebin.com/5NGqV340E.G: it printed the user id: 76561198278317090but didn't sent the message.and it printed the user id: 76561198173748582this time it sent the message.I checked and friendsList was emitted beforeBTW this forum is real good and i get answers. Edited March 29, 2019 by Slime Quote
Dr. McKay Posted March 29, 2019 Report Posted March 29, 2019 You're almost definitely being rate-limited by Steam to prevent spam. Quote
Slime Posted March 29, 2019 Author Report Posted March 29, 2019 (edited) I've delayed it but it still doesn't seems to send all messages and always the same people get messaged... function messageAllCommand() { var messageAll = readlineSync.question('Enter message: '); for (var friend in client.myFriends) { console.log(friend); client.chatMessage(friend, messageAll); await sleep(100); } } function sleep(ms) { return new Promise(resolve => { setTimeout(resolve, ms); }); I've just noticed that everyone who didn't get the message haven't spoke with me for a while. and even people it didn't send the message to got it after i talked with them... wierd... Edited March 29, 2019 by Slime Quote
Slime Posted March 30, 2019 Author Report Posted March 30, 2019 You're almost definitely being rate-limited by Steam to prevent spam.forgot to quote.. see the above ^ 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.