Finish bulk of bot code