No commit activity in last 3 years
No release in over 3 years
Shell-like command substitution for the Lita chat bot.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.3
~> 0.31
~> 0.10

Runtime

~> 4.6
 Project Readme

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'