This is a sample Line bot running on Ruby on Rails and integrates with line-bot-api gem.
Use your Line app and add this Line bot as a friend with the following QR code. When you send it a message it will echo the same message back to you.
- Sign up for a Line Business Center account and create a Line bot account.
- Clone this repo to your local
- Create config/application.yml and add your own
line_channel_id
,line_channel_secret
,line_channel_mid
settings.- You can find your channel information at your Line channel page
- Sample application.yml is at config/application_sample.yml.
- Deploy to Heroku
- Run
figaro heroku:set
to set your Line channel configs defined above in Heroku - Configure your Line channel to add a callback URL. Ex.
https://<heroku-app-name>.herokuapp.com:443/callback