As a software developer, I can't understand why you would need a function to kick something that is not supposed to exist in the first place. If the minbots = 1 and the maxbots = 8 then no more than 8 bots should be created. So then why is the bot mod creating 24? Your approach to solving the problem is like creating a trap to catch flying mice.
Why even have maxbots and minbots, if the bot is going to ignore the setting and do what it wants? Why have an option to enable autofill if you have to disable it for the bot to work? LOL!

!
This is a failure of regression testing in the software development process. Stated simply you have lost fuctionality that existed in previous versions of the software. This loss of functionality cancels outs any gains in functionality in other areas. More over, the functionality that was lost is basic.
Mean Admin Mod is not the blame on this one. I've tested the bot and it fails when the epb.dll is loaded standalone.
Creating a function to kick excess bots just seems to be a bandaid approach to the problem. Rather than creating a function that corrects the problem, why not just prevent the problem from occuring in the first place? Make the bot obey the maxbot and minbot setting as it did in the previous version.