Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Chatbot Facebook Messenger permitting to share the RAK Menu (IMT Atlantique engineering school canteen)

Notifications You must be signed in to change notification settings

florianblanchet/pyrak

Repository files navigation

PyRAK

Give the RAK (IMT ATLANTIQUE Engineering School Canteen) through a Facebook Messenger Chatbot. The menu is collected at the URL: http://services.telecom-bretagne.eu/rak/.

Create an Facebook Developer app

Set up a Messenger app on developers.facebook.com. A TOKEN will be given. Add it to the config.py file. Create the Facebook page you want to chat with linked to your personal profile on facebook.com.

Running Locally

Make sure you have Python installed properly. It works fine with Python 3.6.2.

$ cd pyRAK
$ pip install -r requirements.txt
$ python index.py

Your app should now be running on localhost:5000.

For tests it is useful to use ngrok to redirect your localhost:5000 stream to a temporary public domain. Give the domain to the facebook developer Webhook and you will be able to test the bot on a page.

Deploying pyRAK to Heroku

Install the Heroku Toolbelt.

$ heroku create
$ git push heroku master

or

Deploy

Make sure to add FB_ACCESS_TOKEN and FB_VERIFY_TOKEN to the Heroku environment variables and change the facebook developer Webhook with your new domain.

About

Chatbot Facebook Messenger permitting to share the RAK Menu (IMT Atlantique engineering school canteen)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •