Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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'

About

Shell-like command substitution for the Lita chat bot.

Resources

License

Packages

No packages published