Archivo .env
:
BOT_TOKEN=
API_KEY=
AUTH_DOMAIN=
PROJECT_ID=
STORAGE_BUCKET=
MESSAGING_SENDER_ID=
APP_ID=
PORT=
TZ=GMT-3
ENVIRONMENT=development
- Instalar dependencias
npm install
- Levantar bot
npm start
- Iniciar bot. Esta opción está deshabilitada cuando el valor de entorno
ENVIRONMENT
esta endevelopment
, el bot se inicia solo.
curl http://localhost:<port>/start
- Detener bot
curl http://localhost:<port>/stop
- Obtener status. Puede responder
{status:online}
o{status:offline}
.
curl http://localhost:<port>/status