ooh, that's a hard one. Firstly, sorry you got banned but it happens. If you're talking about botting on an account which already has a 2day ban, i'd be extremely cautious. Bot as little as possible and allow the account to have days off (maybe like no playing on the weekend). Make sure you set up breaks with teh script, preferably to break longer than bot but really that's your choice. Also try and play a bit legit from time to time, and not just bot rock crabs solidly. I'm no expert at preventing bans, but I've heard that botting on a vps helps, as you may have a 'flagged ip'.
Ultimately, i'm probably not the best person to ask as I rarely bot (only to make sure the script is working for my customers), but from what i've botted, that's the advice I can give.
Apa