The process of building your messenger bot is fairly simple the hardest part is setting up your machine to talk to Facebook. That’s why today I’m going to walk you through that real quick. Once it is all done you can get right on the way to creating your own bot.
Go to folder where you would like the project to be and run.
git clone https://github.com/cosmicjs/facebook-bot
One more thing! Inside of your index.js file remove everything after line 38. We’ll go back in and add that later. It should look like this.
... read the whole story at hackernoon.com.
const express = require('express')
const bodyParser = require('body-parser')