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
- Host: GitHub
- URL: https://github.com/louis70109/aws-ruby-line-echo-bot
- Owner: louis70109
- License: mit
- Created: 2019-07-02T15:47:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T14:42:33.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T22:11:26.014Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
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!
# 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.