- Says Hi on entering the Chat.
- Asks for your name.
- Asks for your birth date.
- Asks if the user wants to find out how many days till his next birthday. [The bot accepts ("yes", "yeah", "yup", "no”, "nah", etc) as replies]
- The REST endpoints are /messages, /messages/:id, /summary, respectively
Made with BootBot CLI
sudo npm i bootbot-cli
npm install
npm start
- Bootbot
- Express
- Mongoose
- Shortid
Before starting initialise your env values in .env & bootbot config variables in config/default.json file
// Initialise .env
MONGO_USERNAME=YOUR_MONGO_USERNAME
MONGO_PASSWORD=YOUR_MONGO_PASSWORD
MONGO_DBNAME=YOUR_MONGO_DBNAME
PORT=YOUR_PORT
// Initialise config/default.json For BootBot Variables
{
"accessToken": "YOUR_FACEBOOK_PAGE_ACCESS_TOKEN",
"verifyToken": "YOUR_FACEBOOK_PAGE_VERIFY_TOKEN",
"appSecret": "YOUR_FACEBOOK_APP_SECRET",
"botPort": "YOUR_BOT_PORT", // Without "" Integer
"botTunnelSubDomain": "YOUR_BOT_LOCALTUNNEL_DOMAIN_NAME"
}
It currently runs locally only as the Facebook App is not yet published