- Added Redis service to both docker-compose files for local development and production environments. - Updated bot configuration to utilize the Grammy framework, replacing Telegraf. - Implemented graceful shutdown for the bot, ensuring proper resource management. - Refactored bot commands and removed deprecated message handling logic. - Enhanced environment variable management for Redis connection settings. - Updated dependencies in package.json to include new Grammy-related packages.
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"name": "bot",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "dotenv -e ../../.env.local tsx watch src/index.ts",
|
|
"start": "node dist/index.cjs",
|
|
"lint": "eslint",
|
|
"lint-staged": "lint-staged"
|
|
},
|
|
"dependencies": {
|
|
"@grammyjs/auto-chat-action": "^0.1.1",
|
|
"@grammyjs/commands": "^1.2.0",
|
|
"@grammyjs/conversations": "^2.1.0",
|
|
"@grammyjs/hydrate": "^1.6.0",
|
|
"@grammyjs/i18n": "^1.1.2",
|
|
"@grammyjs/parse-mode": "^2.2.0",
|
|
"@grammyjs/ratelimiter": "^1.2.1",
|
|
"@grammyjs/runner": "^2.0.3",
|
|
"@grammyjs/storage-redis": "^2.5.1",
|
|
"@grammyjs/types": "^3.22.1",
|
|
"@repo/graphql": "workspace:*",
|
|
"@repo/typescript-config": "workspace:*",
|
|
"@types/node": "catalog:",
|
|
"grammy": "^1.38.1",
|
|
"ioredis": "^5.7.0",
|
|
"pino": "^9.9.0",
|
|
"pino-pretty": "^13.1.1",
|
|
"tsup": "^8.5.0",
|
|
"typescript": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@repo/eslint-config": "workspace:*",
|
|
"@repo/lint-staged-config": "workspace:*",
|
|
"dotenv-cli": "catalog:",
|
|
"lint-staged": "catalog:",
|
|
"tsx": "^4.19.2"
|
|
}
|
|
}
|