Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Sample facebook-messenger-bot with a bit extended functionality

License

Notifications You must be signed in to change notification settings

jt0in3e/facebook-bot--messenger_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Facebook Messenger bot & fb-app -->> all-in-one

🙌 not disclaimer

initially project is forked from messenger-bot-tutorial . All process of installation of messenger bot and relevant installation could be found there.

Used technology:

  • --> git&github
  • --> nodejs
  • --> javascript :)
  • --> mongodb
  • --> heroku
  • --> bash/terminal
  • --> facebook/messenger
  • --> lovely linux :)

🙌 How stuff works / demo

To demostrate how it works go to facebook Page - Event-make-bot-Community and send message in messenger to the page. Or you can write post and fb-app will act accordingly. If you like the project and/or fb Page please don't leave it unliked :)

this is demo preview. video with instruction how to use see on Youtube

Alt text


🙌 Main functionality

It works in two derection:

  1. you could send commands to messenger-bot by starting conversation with the Page, or
  2. post status [post] in the Page with text consisting of some commangs.

Using messenger

Go to Page and start conversetion with messenger or start conversation from you chat by finding the bot -> 'Event-make-bot-Community'.

Bot understands the following command:

/event --> creates event for the current date {not fb-event but 'event' with its own database/mongodb/ and own managment process} and adds user to this event; post text as the Page status saying about creation of event and adding of user

/list --> checks whether event exists and shows/lists all users added to the event

/registered --> cheks whether event exists and shows how many users registered [count]

/remove [or] "-" --> checks whether event exists and remove registered user; sends comment to the main status of event saying that user is removed; updates count of registered and list of registered persons

/add [or] "+" --> checks whether event exists and add user to event; sends comment to the main status of event saying that user is added; updates count of registered and list of registered persons

/help --> display available commands

[other text] --> bot respones that command is not understandable

Creating event thought the Page statuses / users posts

Go to the Event-make-bot-Community Page and post you status with text consisting of current date {forman is DD/MM} and add sign '+' or number '1' or '+1'. E.g. "Lets get together today (30/11) in pub 'yeap-drink' and have fun. +1". Fb-app/bot will scan this text and if no event, it will create event and add user to the event. Persons, who wants to be added to the event, could post comment with text '+' or '[number]' to the above status and will be registered to the event / added to the database /. If you want to be removed from event, post comment to the above status with text '-' and bot automaticaly will remove you. List of registered persons and number/count of registered persons could be viewed throught messenger by sending commands to Event-make-bot-Community bot as '/list' and '/registered'


| | Documented process of bot && app creation

Find on Medium detailed article on how all this were build from scratch

@$%?

Own stuffing and developing interesting projects. Of course, all would be documented. #Be in touch? No problema, -->

#| other active projects

  • --> works on IPTV
  • --> web-site on showing bad parked cars
  • --> license car plate recognition (in very future perspective)

About

Sample facebook-messenger-bot with a bit extended functionality

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published