flies don't like wind, so you can put a fan on the shady area where your chickens rest in the heat. Dual benefit is the flies don't buzz around in the air, and the fan helps keep the area dry and speed the drying of droppings, which is less inviting to flies.