Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Bot is "ignoring" some people #416

@the-sharp-shooter

Description

@the-sharp-shooter

For a few months now some players have reported that my bot "is ignoring them" on steam when they try to add it. It still works for most of the people and I dont know what is causing this. Is it because they are free2play, probably ? (or how could I check that?) The bot doesn't even log the "XXXX added me"...

I don't think there is something wrong with my code:

public override bool OnFriendAdd()
{
    Bot.log.Warn(Bot.SteamFriends.GetFriendPersonaName(OtherSID) + " (" + OtherSID.ToString() + ") added me!");
    inviteMsgTimer = new System.Timers.Timer();
    inviteMsgTimer.Interval = InviteTimerInterval;
    inviteMsgTimer.Elapsed += (sender, e) => OnInviteTimerElapsed(sender, e, EChatEntryType.ChatMsg);
    inviteMsgTimer.Enabled = true;
    return true;
}

private void OnInviteTimerElapsed(object source, ElapsedEventArgs e, EChatEntryType type)
{
    Bot.OpenTrade(OtherSID);
    Bot.log.Success("Sent welcome message to " + Bot.SteamFriends.GetFriendPersonaName(OtherSID) + " (" + OtherSID.ToString() + ")");
    inviteMsgTimer.Enabled = false;
    inviteMsgTimer.Stop();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions