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/.
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.
Make sure you have Python installed properly. It works fine with Python 3.6.2.
$ cd pyRAK
$ pip install -r requirements.txt
$ python index.pyYour 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.
Install the Heroku Toolbelt.
$ heroku create
$ git push heroku masteror
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.