From d73e104286fbcb39f1bf34db2bd9df01dfa9f292 Mon Sep 17 00:00:00 2001 From: pDaily Date: Wed, 2 Sep 2015 18:02:26 -0400 Subject: [PATCH] Removed ! prefix from commands. Bumped for rubygems --- README.md | 2 ++ lib/lita/handlers/destiny.rb | 12 ++++++------ lita-destiny.gemspec | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9ea9f02..e127e60 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,5 @@ Add the config to your lita config file with your Bungie API key: ``` ruby config.handlers.destiny_handler.api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' ``` + +I suggest adding ```config.robot.alias = "!"``` to your config file! diff --git a/lib/lita/handlers/destiny.rb b/lib/lita/handlers/destiny.rb index a7b0c50..c32e995 100644 --- a/lib/lita/handlers/destiny.rb +++ b/lib/lita/handlers/destiny.rb @@ -14,20 +14,20 @@ class DestinyHandler < Handler include Destiny # Nightfall Route - route(/^!(nightfall)/i, :nightfall , help: { "!nightfall" => "Get this weeks nightfall description and skulls" }) + route(/^(nightfall)/i, :nightfall , help: { "!nightfall" => "Get this weeks nightfall description and skulls" }) # Weekly Strike Route - route(/^!(weekly)/i, :weekly , help: { "!weekly" => "Get this weeks nightfall description and skulls" }) + route(/^(weekly)/i, :weekly , help: { "!weekly" => "Get this weeks nightfall description and skulls" }) # Xur Route - route(/^!(xur)/i, :xur , help: { "!xur" => "Get Xur's inventory when availible" }) + route(/^(xur)/i, :xur , help: { "!xur" => "Get Xur's inventory when availible" }) # PoE Routes - route(/^!(poe32)/i, :poe_32, help: { "!32" => "Get this weeks level 32 Prison of Elders information." }) + route(/^(poe32)/i, :poe_32, help: { "!32" => "Get this weeks level 32 Prison of Elders information." }) - route(/^!(poe34)/i, :poe_34, help: { "!34" => "Get this weeks level 34 Prison of Elders information." }) + route(/^(poe34)/i, :poe_34, help: { "!34" => "Get this weeks level 34 Prison of Elders information." }) - route(/^!(poe35)/i, :poe_35, help: { "!35" => "Get this weeks level 35 Prison of Elders information." }) + route(/^(poe35)/i, :poe_35, help: { "!35" => "Get this weeks level 35 Prison of Elders information." }) # Nightfall Activity Method # diff --git a/lita-destiny.gemspec b/lita-destiny.gemspec index 0af8c72..772c0c2 100644 --- a/lita-destiny.gemspec +++ b/lita-destiny.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "lita-destiny" - spec.version = "0.2.4" + spec.version = "0.2.5" spec.authors = ["PDaily"] spec.email = ["pat.irwin4@gmail.com"] spec.description = "Small lita.io handler for interacting with the Destiny API"