I have used a similar bot for the game grepolis, only the recruit function was a bit different there.
Your function is much better with the interval etc, but the only thing i'd like to see changed is that:
Instead of telling the bot how much to recruit each time, how about change it to the amount of each unit u would like to end up with.
So instead of telling the bot to make 1 unit each time, tell the bot to keep recruiting that certain type of unit (it can just click on the amount that is available next to the input box) until x amount has been reached. then go on to next type of unit etc.
This way u don't need the "count" option, because the bot will just keep recruiting until the specified amount is reached. I think that would be less intensive for the bot (little performance boost maybe?) plus that when u are also farming (i farm like 20 barbarian farms with 3-6 hours interval) u don't lose too much units if e.g: u don't have a high enough count. (my count was 999 and the bot looks for recruitments with a 2 minute interval and i still didn't had enough units xD)

