Jessecar96 / SteamBot

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

Trade completed message pops up 3x as soon as bot starts up #1071

Open gaffelosked opened 7 years ago

gaffelosked commented 7 years ago

As soon as the bot has connected to steam it sends me 3x messages saying trade completed, is it counting already completed trades? Have I done something wrong?

gaffelosked commented 7 years ago

Also, what's wrong with my code? The bot doesn't respond at all.

public bool Validate ()
        {
            int OfferedItemAmount = 0;
            foreach (var items in Trade.MyOfferedItems)
            {
                OfferedItemAmount++;
            }

            if (OfferedItemAmount > 0)
            {
                Trade.CancelTrade();
            } else
            {

                Trade.AcceptTrade();
            }
gaffelosked commented 7 years ago

Bump, still having issues. Now it sends 4 messages at startup.

TimoKruth commented 6 years ago

@gaffelosked You probably haven't done anything wrong. I get messages from prior trades as well. I guess this issue isn't active anymore? So this can probably be closed.