Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 961 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 961 Bytes

line-bot-python-example

About The Project

Here are some examples of line bot.

Usage for Vercel

Deploy with Vercel

Usage for local

Requirements

- Python >= 3.8
- Flask==3.0.0
- line_bot_sdk==3.5.0
- python-dotenv==1.0.0
- google-generativeai==0.3.1

Installation

  1. Install requirements
pip install -r requirements.txt
  1. Copy .env.example and rename to .env
  2. Change the content in .env to your own information
  3. Run the program
python index.py

Webhook URL route

Route Description
/echo/ Echo bot
/chat/ Generative AI bot
/keyword/ Keyword bot

License

Distributed under the MIT License. See LICENSE for more information.