Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/louis70109/aws-line-echo-bot

☁This project is using Serverless + python + LINE message api to create a echo bot on AWS.
https://github.com/louis70109/aws-line-echo-bot

aws python serverless

Last synced: about 1 month ago
JSON representation

☁This project is using Serverless + python + LINE message api to create a echo bot on AWS.

Awesome Lists containing this project

README

        

# aws-LINE-echo-bot

This is my first project using Serverless framework to create LINE echo bot in AWS.

Release this project to help first time use this framework's developer!

# 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-echo-bot -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
```

Now you can test you chatbot, have fun!
![Echo bot](https://i.imgur.com/Tn1XS13.png)

# Author

Create by NiJia

# Bonus

This project is combined in [serverless example project](https://github.com/serverless/examples/tree/master/aws-python-line-echo-bot)

# License

MIT