So, I'm trying to make a bot for steam and I need it so that when a player goes offline it removes them as a friend unless their name is Conway220.
I'm using this to get the nodes:

And it should be similar to this, except the opposite with removefriend instead of addfriend.
client.on('relationship', function(steamID, relationship) {
        if(relationship == steam.EFriendRelationship.PendingInvitee) {
      'Accepting friend request from ' + steamID);
Thank's in advanced