Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Ignoring friend request? #497

Closed vudung45 closed 10 years ago

vudung45 commented 10 years ago

I found out a bug ! One time, i tried to unfriend my bot then add again... Bot ignore my friend request?

Is there any solution for this?

FrozenHaxor commented 10 years ago

This is a well known Steam issue, nothing to do with SteamBot.

Try manually blocking and then unblocking yourself / bot / whatever and it should work.

vudung45 commented 10 years ago

@FrozenHaxor : Not just that. I even added a command that after trade is finished, bot will unfriend the trader.... After that, i can't add bot again....

I think you know about dota2lounge. Their bots can unfriend and accept friend request whenever they want without being ignored

FrozenHaxor commented 10 years ago

@vudung45 Well maybe they are doing some trickery like removing, blocking then unblocking in timed periods, I believe it's all about steam.

vudung45 commented 10 years ago

@FrozenHaxor : is there anyway to unblock and block a friend using this steambot?

FrozenHaxor commented 10 years ago

Did you even bother to read the manual...? 13 lis 2013 05:50 "vudung45" notifications@github.com napisa³(a):

@FrozenHaxor https://github.com/FrozenHaxor : is there anyway to unblock and block a friend using this steambot?

Reply to this email directly or view it on GitHubhttps://github.com/Jessecar96/SteamBot/issues/497#issuecomment-28364398 .

vudung45 commented 10 years ago

@FrozenHaxor Take an easy man .... This was not steam problem. I checked it out last night and fixed it. There was a conflict in bot.cs that bot doesnt remove its friend when the user removes it -> the user still in the friendlist some how -> bot doesnt accept the friend request! I have fixed that.. gonna upload it here soon

FrozenHaxor commented 10 years ago

@vudung45 You must have messed something up, my bots act fine after someone removes them. Or it's a result of some recent commits maybe?

vudung45 commented 10 years ago

this is what i changed in bot.cs

region Friends

        msg.Handle<SteamFriends.FriendsListCallback> (callback =>
        {
                foreach (SteamFriends.FriendsListCallback.Friend friend in callback.FriendList)
                {
                    if (!friends.Contains(friend.SteamID))
                    {
                        friends.Add(friend.SteamID);
                        if (friend.Relationship == EFriendRelationship.RequestRecipient)
                        {
                            SteamFriends.AddFriend(friend.SteamID);
                            GetUserHandler(friend.SteamID).OnFriendAdd();
                        }
                    }
                        if (friend.Relationship == EFriendRelationship.None)
                        {
                            friends.Remove(friend.SteamID);
                            GetUserHandler(friend.SteamID).OnFriendRemove();
                        }

                }

        });
vudung45 commented 10 years ago

If some of u got this problem, please use my fix for bot.cs up there