move all the botbot code into its own file.