- This bot is a module to be used on Chat Api Bot
- Websocket
- RabbitMQ
This Bot is a module that connect to Chat Bot API
via websocket and store the results on a message broker and return the parsed message to a specific room via websocket.
After connect to websocket server, the BOT request for a room based on its command and after that, manage the requests through this room
1- Install dependencies
npm i
##or
yarn
2- Set environment keys
RABBITMQ_SERVER= # RabbitMQ Server Connection String
RABBITMQ_QUEUE= # RabbitMQ Queue name
SOCKET_SERVER= # Websocket server (This Server must be allowed on Websocket CORS LIST)
3 - Run Service
3.1 - In Development Mode
npm run dev
#or
yarn dev
3.2 - In Production Mode
npm start
#or
yarn start