Im found only this but I do not know how to use it when I have it client.on('friendMessage', (steamid, message) please Help Thanks.2 message per sec or remove setInterval(() => { for (let i = 0; i < Object.keys(userMsgs).length; i++) { if (userMsgs[Object.keys(userMsgs)] > 2) { client.chatMessage(Object.keys(userMsgs), "You have been removed for spamming. Another offense will get you blocked."); client.removeFriend(Object.keys(userMsgs)); } } userMsgs = {}; }, 1000);