Bot singlethread implementation