Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 680 Bytes

README.md

File metadata and controls

50 lines (36 loc) · 680 Bytes

Ambiente de desarrollo

Environment

Archivo .env:

BOT_TOKEN=
API_KEY=
AUTH_DOMAIN=
PROJECT_ID=
STORAGE_BUCKET=
MESSAGING_SENDER_ID=
APP_ID=
PORT=
TZ=GMT-3
ENVIRONMENT=development

Usar bot

  1. Instalar dependencias
npm install
  1. Levantar bot
npm start
  1. Iniciar bot. Esta opción está deshabilitada cuando el valor de entorno ENVIRONMENT esta en development, el bot se inicia solo.
curl http://localhost:<port>/start
  1. Detener bot
curl http://localhost:<port>/stop
  1. Obtener status. Puede responder {status:online} o {status:offline}.
curl http://localhost:<port>/status