Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aar0ntw/lita-line
A Line adapter for Lita
https://github.com/aar0ntw/lita-line
bot bot-channel gem line lita
Last synced: 22 days ago
JSON representation
A Line adapter for Lita
- Host: GitHub
- URL: https://github.com/aar0ntw/lita-line
- Owner: aar0nTw
- License: mit
- Created: 2016-11-17T14:04:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-10T10:41:14.000Z (over 7 years ago)
- Last Synced: 2024-11-15T20:41:29.739Z (about 1 month ago)
- Topics: bot, bot-channel, gem, line, lita
- Language: Ruby
- Homepage: https://rubygems.org/gems/lita-line
- Size: 46.9 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lita-line
[![Gem](https://img.shields.io/gem/v/lita-line.svg)](https://rubygems.org/gems/lita-line)
[![Gem](https://img.shields.io/gem/dt/lita-line.svg)](https://rubygems.org/gems/lita-line)
[![Gemnasium](https://img.shields.io/gemnasium/aar0nTw/lita-line.svg)](https://gemnasium.com/github.com/aar0nTw/lita-line)
[![Build Status](https://img.shields.io/travis/aar0nTw/lita-line.svg)](https://travis-ci.org/aar0nTw/lita-line)
[![Code Climate](https://codeclimate.com/github/aar0nTw/lita-line/badges/gpa.svg)](https://codeclimate.com/github/aar0nTw/lita-line)
[![Coverage Status](https://img.shields.io/coveralls/aar0nTw/lita-line.svg)](https://coveralls.io/github/aar0nTw/lita-line?branch=master)LINE messaging webhook adapter for [Lita](https://github.com/litaio/lita)
## Installation
Add lita-line to your Lita instance's Gemfile:
``` ruby
gem "lita-line"
```## Configuration
Use line adapter in `lita_config.rb`
``` ruby
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 tokenCreate 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](http://www.rubydoc.info/gems/lita-line)
## Example
- [Lita-line-bot](https://github.com/aar0nTw/lita-line-bot) | A simple LINE messaging bot use Lita
## License
[MIT](http://opensource.org/licenses/MIT)