16 lines
418 B
Markdown
16 lines
418 B
Markdown
|
## Telegraf Bot Pattern
|
||
|
|
||
|
![example](https://i.imgur.com/5lbe3pl.png)
|
||
|
|
||
|
#### Change .env.example to .env
|
||
|
|
||
|
> Started init: `yarn install` and `npm 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 )
|