1 |
|
2 |
|
3 | /*console.log(`
|
4 | ________ ________ _________ ________ ________ ___ ________
|
5 | |\ __ \|\ __ \|\___ ___\\ __ \|\ ___ \|\ \|\ ____\
|
6 | \ \ \|\ /\ \ \|\ \|___ \ \_\ \ \|\ \ \ \\ \ \ \ \ \ \___|
|
7 | \ \ __ \ \ \\\ \ \ \ \ \ \ \\\ \ \ \\ \ \ \ \ \ \
|
8 | \ \ \|\ \ \ \\\ \ \ \ \ \ \ \\\ \ \ \\ \ \ \ \ \ \____
|
9 | \ \_______\ \_______\ \ \__\ \ \_______\ \__\\ \__\ \__\ \_______\
|
10 | \|_______|\|_______| \|__| \|_______|\|__| \|__|\|__|\|_______|
|
11 |
|
12 |
|
13 |
|
14 | Build chatbots with React
|
15 | `)*/
|
16 |
|
17 | var utils = require('../lib/utils')
|
18 |
|
19 | try {
|
20 | utils.botonicPostInstall()
|
21 | } catch (e) {
|
22 | //Some users don't have the right permissions to
|
23 | //create dirs at instal time. We delay it until
|
24 | //they run their first command.
|
25 | if (process.env.BOTONIC_DISABLE_MIXPANEL !== '1') {
|
26 | const Analytics = require('analytics-node')
|
27 | var analytics = new Analytics('YD0jpJHNGW12uhLNbgB4wbdTRQ4Cy1Zu')
|
28 | analytics.track({
|
29 | event: 'Installed Botonic CLI',
|
30 | anonymousId: Math.round(Math.random() * 100000000)
|
31 | })
|
32 | }
|
33 | }
|
34 |
|
35 | console.log('\n✨ Botonic was installed successfully.\n')
|
36 | console.log(
|
37 | 'Create your first chatbot with:\n\x1b[1mbotonic new myBot\x1b[0m\n'
|
38 | )
|