private static void LoadScripts(Options options, Robot robot, NuGetPackageAssemblyResolver nugetResolver, ILog logger) { if (options.Test) { robot.AutoLoadScripts = false; options.ScriptFiles.ForEach(robot.LoadScriptFile); } else { robot.LoadScripts(nugetResolver.GetCompiledScriptsFromPackages()); if (!Directory.Exists(Path.Combine(Environment.CurrentDirectory, "scripts"))) { logger.Warn( "There is no scripts folder. Have you forgotten to run 'mmbot init' to initialise the current running directory?"); } } }