Project

lita-irkit

0.0
No commit activity in last 3 years
No release in over 3 years
Use IRKit on Lita
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 3.0.0

Runtime

~> 0.9.0
>= 3.0
 Project Readme

lita-irkit

Use IRKit on Lita

Build Status

Installation

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

gem "lita-irkit"

Configuration

config.handlers.irkit.deviceid  = ENV["IRKIT_DEVICEID"]
config.handlers.irkit.clientkey = ENV["IRKIT_CLIENTKEY"]

Usage

route /^ir list/,            :ir_list,         command: false, help: { "ir list"                      => "list irkit command names" }
route /^ir send (.+)/,       :ir_send,         command: false, help: { "ir send [command_name]"       => "send irkit command" }
route /^ir all off/,         :ir_send_all_off, command: false, help: { "ir all off"                   => "send irkit commands which end with 'off'" }
route /^ir register (.+)/,   :ir_register,     command: true,  help: { "ir register [command_name]"   => "register irkit command" }
route /^ir unregister (.+)/, :ir_unregister,   command: true,  help: { "ir unregister [command_name]" => "unregister irkit command" }
route /^ir migrate/,         :ir_migrate,      command: true

Migration from 0.0.x to 0.1.0

Since Redis namespace has been changed at v0.1.0, You must run migration command when upgrading to v0.1.0 or later.

@your_bot ir migrate
#=> :ok_woman: 10 keys are migrated.

License

MIT