https://github.com/louis70109/aws-line-wsgi-python
☁ using serverless to build a LINE echo bot with WSGI
https://github.com/louis70109/aws-line-wsgi-python
Last synced: about 2 months ago
JSON representation
☁ using serverless to build a LINE echo bot with WSGI
- Host: GitHub
- URL: https://github.com/louis70109/aws-line-wsgi-python
- Owner: louis70109
- License: mit
- Created: 2019-07-08T14:45:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T08:29:27.000Z (over 2 years ago)
- Last Synced: 2025-02-12T15:18:32.956Z (4 months ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# AWS-LINE-WSGI-PYTHON
Welcome here!
This is [aws-line-echo-bot](https://github.com/louis70109/aws-line-echo-bot) upgrade version,
using serverless to build a LINE echo bot with WSGI.> Taiwan user can follow [my topic](https://nijialin.com/2019/11/02/%E7%BA%8C%E7%AF%87-%E2%80%94-serverless-WSGI-flask-chatbot-%E7%9A%84%E9%96%8B%E7%99%BC%E6%8C%87%E5%8D%97/)
# Bebore you start
1. LINE developer account
2. [LINE Message API](https://developers.line.biz/en/docs/messaging-api/getting-started/)# Quick Start
1. Install serverless via npm
```bash=
$ npm install -g serverless
```2. Setup your **AWS** ceritficate
```bash=
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
```3. Clone this project
```bash=
$ serverless install --url https://github.com/louis70109/aws-line-wsgi-python -n
$ cd /
```4. Insert you LINE bot secret & key
```python=
line_bot_api = LineBotApi('YOUR_CHANNEL_ACCESS_TOKEN')
handler = WebhookHandler('YOUR_CHANNEL_SECRET')
```5. Deploy the webhhok function
```bash=
npm install
pip install -r requirements.txt
serverless deploy
```6. You may have like this domain

7. Copy and Paste domain in your LINE bot account

8. Now you can test you chatbot, have fun!
# Author
Create by NiJia
# License
The project is available as open source under the terms of the MIT License.