AWS | Line Bot Example

This example shows you how to create a LINE bot using Ruby.

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u https://github.com/serverless/examples/tree/master/aws-ruby-line-bot -n  aws-ruby-line-bot

AWS-ruby-line-echo-bot

Follow this project,

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

so you can use this project in others case.

Before you start

  1. LINE developer account
  2. LINE Messaging API

Get Started

  1. Install serverless via npm
$ npm install -g serverless
  1. Setup your AWS ceritficate
export AWS_ACCESS_KEY_ID=<your-key-here>
export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>
  1. Insert you line bot secret & key
config.channel_secret = "YOUR_LINE_CHANNEL_SECRET"
config.channel_token = "YOUR_LINE_CHANNEL_TOKEN"
  1. Deploy the webhook function
npm install
serverless deploy

Now you can test your chatbot, have fun! Echo bot

References

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g