This is a bot using RabbitMQ
- Node installed
- Have one RabbitMQ instance create
- RabbitMQ should have a dedicated queue that handles bot message
- Clone this repository
- Open the terminal inside the recently cloned repository
- Create a .env file in the root project folder
npm install
npm run dev
These are the following variables you must configure USE THE SAME ENVIRONMENTAL RABBITMQ VARIABLES FOR THE CHAT APP
PORT=8000
RABBITMQ_URL=amqp://rabbitmqurl
RABBITMQ_QUEUE=queue_name
RABBITMQ_STOCKBOT_QUEUE=stock_queue_name
Now your chat app has a bot!
Just send a json with the following parameters
interface BotContent{
stockCode: string
username: string
channel?: string
}