Skip to content

unownone/Facebook-Messenger-Bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Messenger Bot

Working :

  • 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

DEMO VIDEO

AdaKerja Assignment Video Demo

GIF SNIPPETS

Click on Get Started

Start Get Started

Provide Your Name

name

Provide Your Birth Date

date

Answer with a negetion/validation

yup works

REST API Endpoint for all messages

messages

REST API Endpoint for a particular messages

messages id

REST API Endpoint for all user data

Summary

Made with BootBot CLI

Runnig on Local Machine

sudo npm i bootbot-cli
npm install
npm start

Packages & Tech Used :

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%