Skip to content
A Line adapter for Lita
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
locales
spec
.codeclimate.yml
.gitignore
.rspec
.rubocop.yml
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-line.gemspec

README.md

lita-line

Gem Gem Gemnasium Build Status Code Climate Coverage Status

LINE messaging webhook adapter for Lita

Installation

Add lita-line to your Lita instance's Gemfile:

gem "lita-line"

Configuration

Use line adapter in lita_config.rb

config.robot.adapter = :line
config.adapters.line.channel_secret = ENV["LINE_CHANNEL_SECRET"]
config.adapters.line.channel_token = ENV["LINE_CHANNEL_TOKEN"]

Required attributes

  • channel_secret (String): Bot's Channel secret
  • channel_token (String): Bot's Channel token

Create a line bot at https://business.line.me/ and get its secret and token in https://developers.line.me

Usage

  • Deploy your lita app to heroku
  • Setting the webhook callback address: https://{your-lita-app-name}.herokuapp.com/callback in https://developers.line.me

API documentation

The API documentation, useful for plugin authors, can be found for the latest gem release on RubyDoc.info

Example

License

MIT

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.