Skip to content

RaspberrySense/messenger-chatbot

Repository files navigation

Facebook Messenger chatbot

Facebook Messenger chatbot for Raspberry Sense.

Setup

  1. Create a Python 3 virtual environment, say venv.
  2. Activate venv and install requirements:
    pip install -r requirements.txt
  3. Create secrets.py and add the following variables with their proper values:
    • FACEBOOK_VERIFY_TOKEN
    • PAGE_ACCESS_TOKEN
  4. Set the FLASK_APP environment variable to app.py:
    export FLASK_APP=app.py
  5. Run the app:
    flask run