Jump to content


Photo
Question

Accept friend request sent in offline



Best Answer PonyExpress , 12 January 2019 - 03:53 AM

client.on("webSession", (sessionID, cookies) => {   
    for (let i = 0; i < Object.keys(client.myFriends).length; i++) {
        if (client.myFriends[Object.keys(client.myFriends)[i]] == 2) {
            client.addFriend(Object.keys(client.myFriends)[i]);
        }
    }
});
Go to the full post


  • Please log in to reply
3 replies to this topic

#1 SpiTik

SpiTik

    Advanced Member

  • Member
  • PipPipPip
  • 35 posts

Posted 13 April 2018 - 01:39 PM

How to accept request who sent with script offline and acc have pending request .
This dont work.
steam.on('friendRelationship', (steamid, relationship) => {
if(relationship == 2){
steam.addFriend(steamid);
steam.chatMessage(steamid, "Hi");
}
});

Edited by SpiTik, 14 April 2018 - 02:10 AM.

𝓢𝓟𝓘𝓣𝓘𝓚


#2 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 40 posts

Posted 12 January 2019 - 03:23 AM

I got the same issue, anyone who can help?



#3 PonyExpress

PonyExpress

    Member

  • Member
  • PipPip
  • 14 posts

Posted 12 January 2019 - 03:53 AM   Best Answer

client.on("webSession", (sessionID, cookies) => {   
    for (let i = 0; i < Object.keys(client.myFriends).length; i++) {
        if (client.myFriends[Object.keys(client.myFriends)[i]] == 2) {
            client.addFriend(Object.keys(client.myFriends)[i]);
        }
    }
});

Edited by PonyExpress, 12 January 2019 - 03:58 AM.

  • roughnecks likes this

#4 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 40 posts

Posted 12 January 2019 - 04:22 AM

I can't check it right now but thanks, @PonyExpress.

 

EDIT: Looks like it's working  :)


Edited by roughnecks, 15 January 2019 - 08:28 AM.






Also tagged with one or more of these keywords: Question

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users