Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

lita-gitter

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lita-gitter

bundlerRubygems
Version
0.1.2
Version published
Maintainers
2
Created
Source

Lita::Adapters::Gitter

Gem Version Build Status Coverage Status

Gitter adapter for the Lita chat bot.

Usage

At first, see the documentation for Lita: http://docs.lita.io/

Installation

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

gem 'lita-gitter', '~> 0.1.2'

Preparation

Go to https://developer.gitter.im/apps, sign in if you are not already signed in, and remember your token.

Then type in terminal (replace $LITA_GITTER_TOKEN with your token):

$ curl https://gitter.im/api/v1/rooms \
-H "Accept: application/json" \
-H "Authorization: Bearer $LITA_GITTER_TOKEN"

Find needed room by it's name and remember room ID which precedes room name.

Configuration

Required attributes

  • token (String) - Secret token of Gitter user
  • room_id (String) - Room ID

Example

This is an example lita_config.rb file:

Lita.configure do |config|
  config.robot.name = 'Lita'
  config.robot.mention_name = 'lita'

  config.robot.adapter = :gitter

  config.adapters.gitter.token   = 'LpMMyGbceCbUNl4ldRHfzjzb9a48F5WZYbgtBWoi'
  config.adapters.gitter.room_id = 'Q5cjBQ9BwrNdK0JcicI9AYbL'
end

FAQs

Package last updated on 23 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts