WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Go to ${path.relative(currentWorkingDirectory,projectDir)} and run "${packageManagerResponse.packageManager} run build" and "${packageManagerResponse.packageManager} run start" to get started.`,
125
-
);
125
+
126
+
constpmNpmDefault=
127
+
packageManagerResponse.packageManager==="none"
128
+
? "npm"
129
+
: packageManagerResponse.packageManager;
130
+
// Enhanced instructions
131
+
if(projectDir===currentWorkingDirectory){
132
+
consola.info(`
133
+
Next Steps:
134
+
1. Copy the .env.example file to .env:
135
+
136
+
cp .env.example .env
137
+
138
+
2. Open the .env file and fill in your bot's token and any other necessary environment variables.
139
+
3. Run "${pmNpmDefault} run build" to compile your TypeScript code.
140
+
4. Run "${pmNpmDefault} run start" to start your bot.
141
+
142
+
You are all set! Happy bot building!
143
+
`);
144
+
}else{
145
+
consola.info(`
146
+
Next Steps:
147
+
1. Go to your project directory:
148
+
149
+
cd ${path.relative(currentWorkingDirectory,projectDir)}
150
+
151
+
2. Copy the .env.example file to .env:
152
+
153
+
cp .env.example .env
154
+
155
+
3. Open the .env file and fill in your bot's token and any other necessary environment variables.
156
+
4. Run "${pmNpmDefault} run build" to compile your TypeScript code.
157
+
5. Run "${pmNpmDefault} run start" to start your bot.
158
+
159
+
You are all set! Happy bot building!
160
+
`);
161
+
}
126
162
}catch(error: any){
127
163
consola.error(`Failed to initialize project: ${error.message}`);
0 commit comments