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

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

this project is used serverless framework to combine LINE message api
https://github.com/louis70109/aws-ruby-line-echo-bot

Last synced: 2 months ago
JSON representation

this project is used serverless framework to combine LINE message api

Awesome Lists containing this project

README

        

# aws-line-echo-bot

Follow this [project](https://github.com/louis70109/aws-line-echo-bot),

I use my first language(ruby) to build this on serverless,

so you can use this project in others case.

# Bouns

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

# 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-ruby-line-echo-bot -n
$ cd /
```

4. Insert you LINE bot secret & key

```python=
config.channel_secret = "YOUR_LINE_CHANNEL_SECRET"
config.channel_token = "YOUR_LINE_CHANNEL_TOKEN"
```

5. Deploy the webhhok function

```bash=
npm install
serverless deploy
```

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

# References

- [Plugin hook](https://github.com/serverless/serverless/issues/5567#issuecomment-444671106)

# Author

Create by NiJia

# License

The project is available as open source under the terms of the MIT License.