lita-googl

Build Status Coverage Status

lita-googl is a handler for Lita that shortens URLs via URL Shortener API

Installation

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

gem "lita-googl"

Configuration

Add the configuration lines (listed below) to your application lita_config.rb

Secure it

You may "hide" your API key from the application config like this
config.handlers.googl.api_key=ENV['GOOGL_API_KEY'] and in your terminal

$ GOOGL_API_KEY=XXXXXXXX
$ export GOOGL_API_KEY
$ # Ensure it's there
$ echo $GOOGL_API_KEY
XXXXXXXX

Usage

22:55 <SecretR> ZaraRobo google http://zaralab.org/
22:55 <ZaraRobo> SecretR http://goo.gl/x5PsTf