Skip to content

Commit a5c4663

Browse files
committed
chore: update start:deploy script in package.json and remove getUpdates call in src/bot/index.ts
1 parent fdd285d commit a5c4663

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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": "npm run build && NODE_ENV=production node dist/app.js"
23+
"start:deploy": "NODE_ENV=production node --trace-uncaught -r ts-node/register src/app.ts"
2424
},
2525
"repository": {
2626
"type": "git",

src/bot/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class CopBot {
4444
}
4545
} else {
4646
try {
47-
await this._bot.api.getUpdates({ offset: -1 });
4847
await this._bot.start({
4948
onStart: (botInfo) => {
5049
console.log(`Bot started in long-polling mode! Username: ${botInfo.username}`);

0 commit comments

Comments
 (0)