Goddamn man. The amount of misinformation out there on this topic is just absolutely staggering.
No one knows what criteria cause Blizzard to look for and ban accounts - SERIOUSLY, NOT A SOUL OUTSIDE OF THE BLIZZARD TECHNICAL TEAM KNOW WHY BLIZZARD FLAGS ACCOUNTS AND BANS THEM FOR BOTTING. If someone tells you they know, they are lying. If someone claims to know, they don't. If someone tells you what NOT to do to GUARANTEE you will not get caught botting, THEY ARE BULLSHITTING YOU. If we KNEW what Blizzard did to detect botters, NO ONE WOULD EVER GET BANNED. That's just simple common sense folks.
Running the bot is a risk. Some people run 24/7 for years - never get caught. Some people bot for a week - get banned within the next week. IT'S OBVIOUSLY TO SOME EXTENT RANDOM FOLKS.
There's no way to avoid detection. You are either lucky or unlucky. I personally feel that everyone botting right now feels a little invincible over the complete lack of action on Blizzard's part to stop us - I know I do. But we also all know that if Blizzard decides accounts should still be banned for botting 99% of us are going to get hit in the next banwave and that will be that.
My personal advice if you want to bot - accept that you are going to get banned before doing so. You'll have a much, much better time with both the bot and your earned rewards from said botting. And when you do get banned, which is all but inevitable if Blizzard is planning on still banning botters, you won't be too heart broken about it.