Бот для проверки в утекших базах данных
src | ||
tests@9f2e05c0cd | ||
.dockerignore | ||
.env.example | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.prettierrc | ||
Dockerfile | ||
ecosystem.config.js | ||
index.js | ||
LICENSE | ||
package.json | ||
Procfile | ||
README.md |
Telegraf Bot Pattern
Change .env.example to .env
Started init:
yarn install
andnpm install pm2 -g
Mode Default:
yarn dev
- For Development
Mode Cluster:
yarn prod
- In Production bot
Mode Production PM2:
yarn pm:prod
yarn pm:stop
yarn pm:up
// pm2 startup
Example
.env
( BOT_CLUSTER_CORE = 2 ) or AutoScale ( BOT_CLUSTER_CORE = 0 )