in templates/typescript/generator-bot-virtualassistant/generators/app/index.js [311:367]
end() {
if (this.props.finalConfirmation === true) {
if (isAlreadyCreated) {
this.log(
chalk.red.bold(
`-------------------------------------------------------------------------------------------- `
)
);
this.log(
chalk.red.bold(
` ERROR: It's seems like you already have an assistant with the same name in the destination path. `
)
);
this.log(
chalk.red.bold(
` Try again changing the name or the destination path or deleting the previous bot. `
)
);
this.log(
chalk.red.bold(
`-------------------------------------------------------------------------------------------- `
)
);
} else {
this.spawnCommandSync("npm run build", []);
if (containsSpecialCharacter) {
this.log(
chalk.yellow(
`\nYour virtual assistant name (${this.props.assistantName}) had special characters, it was changed to '${finalAssistantName}'`
)
);
}
this.log(chalk.green(`------------------------ `));
this.log(chalk.green(` Your new assistant is ready! `));
this.log(chalk.green(`------------------------ `));
this.log(
`Open the ` +
chalk.green.bold(`README.md`) +
` to learn how to run your assistant. `
);
this.log(
chalk.blue(
`\nNext step - being in the root of your generated assistant, to deploy it execute the following command:`
)
);
this.log(chalk.blue(`pwsh -File deployment\\scripts\\deploy.ps1`));
}
} else {
this.log(chalk.red.bold(`-------------------------------- `));
this.log(chalk.red.bold(` New assistant creation was canceled. `));
this.log(chalk.red.bold(`-------------------------------- `));
}
this.log(`\nThank you for using the Microsoft Bot Framework. `);
this.log(`\n${tinyBot} The Bot Framework Team`);
}