darn, there's a closing bracket missing, should be;
add_filter('autoptimize_js_do_minify','survivehive_ao_js_minify',10,1);
function survivehive_ao_js_minify() {
if (strpos($_SERVER['HTTP_USER_AGENT'],"Googlebot")!==false)
return false;
} else {
return true;
}
}
(still not tested though ;-) )