When setting the bot to build something new, if you don't have enough resources, the bot fails to construct the building and deletes it from the queue as if it was successful.
Playing on ts2.travian.us
New Building when not enough resources
Re: New Building when not enough resources
Copy here phrase about "don't have enough resources" from the game page