- The Flask-based LineBot is deployed on Render.
- Currently store all the data on Google Sheet.
- Install relevent packages
pip install -r requirements.txt
- Register Render
- Apply for Google Sheet API
- Follow the steps to set up Google Sheet API.
- To use Google Sheet credentials while not leak the API secrets on public Github repo, store all the environment variables on Render manually.
- Refer to this solution if encountering issues regarding private_key in gspread credentials.
The LineBot source code is modified from here. While the original project deploy the chatbot on ngrok, I turn to Render for its stability.