Interesting. I got 2 bans these past couple days. Both were while I was playing legit, but had been using an osbot script a few hours prior. One was permanent and the other (on my best account) was only a 2 day thankfully. I had used a couple other bots in the previous 2 weeks or so, but the script I'm 99% sure the ban came from was an osbot script ~1-3 hours before the ban.
Ive had no success botting any 99's with Tribot or OSbot scripts in the last year. Lost $3k+ in accounts. From my understanding you get flagged then investigated.
What i've learns from my botting experience is they will flag your ip and they go after paterns like if you're usually legit on 12h per day they chance are less you wont get the ban than if you suddenly appear 12h per day from nowhere.
Also i guess it depends on luck if other people reports you etc.
Too many factors go into this, there is no one set answer.
They do both 'instant' and delayed bans.
Depends on the method you're botting, time/breaks, f2p vs p2p, etc.