Shell-like command substitution for the Lita chat bot.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
locales
spec
templates
.gitignore
.rspec
.rubocop.yml
.simplecov
.travis.yml
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
lita-substitution.gemspec

README.md

Lita::Handlers::Substitution

Gem Version Build Status Coverage Status

Shell-like command substitution for the Lita chat bot.

Allows you to use the output of commands as arguments to another command. Hypothetical example:

You: lita hello
Lita: Hello, World!
You: lita upcase qwerty
Lita: QWERTY
You: lita upcase $(hello)
Lita: HELLO, WORLD!

You can get the most power by using it with lita-key-value:

You: lita kv set text $(get some text)
Lita: Set text to Here is some text.
You: lita upcase $(kv get text)
Lita: HERE IS SOME TEXT.

Usage

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

Installation

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

gem 'lita-substitution', '~> 0.1.1'