Skip to content

Commit

Permalink
Removed ! prefix from commands. Bumped for rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
pDaily committed Sep 2, 2015
1 parent 4d50c24 commit d73e104
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -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!
12 changes: 6 additions & 6 deletions lib/lita/handlers/destiny.rb
Expand Up @@ -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
#
Expand Down
2 changes: 1 addition & 1 deletion 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"
Expand Down

0 comments on commit d73e104

Please sign in to comment.