Skip to content

Commit 2606bca

Browse files
committed
chore: Added new script to package.json and modified bot initial method
1 parent 27d0b48 commit 2606bca

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"clean": "rm -rf dist",
2121
"main": "npm run build & node --env-file=.env dist/app.js",
2222
"start": "NODE_ENV=development node --trace-uncaught -r ts-node/register --env-file=.env src/app.ts",
23-
"start:deploy": "NODE_ENV=production node --trace-uncaught -r ts-node/register src/app.ts"
23+
"start:deploy": "NODE_ENV=production node --trace-uncaught -r ts-node/register src/app.ts",
24+
"start:deplow:dev": "NODE_ENV=development node --trace-uncaught -r ts-node/register src/app.ts"
2425
},
2526
"repository": {
2627
"type": "git",

src/bot/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ export class CopBot {
163163
}
164164
@Catch()
165165
async initial(): Promise<void> {
166-
await this.start();
167166
new GenerateCommand(this._bot).generate();
168167
await this.message();
168+
await this.start();
169169
console.log('Bot Is Start');
170170
}
171171
}

0 commit comments

Comments
 (0)