Skip to content

Commit

Permalink
Merge pull request #2 from reidblomquist/add-short-alias
Browse files Browse the repository at this point in the history
adds a !g alias to the command
  • Loading branch information
onewheelskyward committed Jul 19, 2018
2 parents 2cf49fe + bd96507 commit 328b2af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lita/handlers/onewheel_google.rb
Expand Up @@ -8,6 +8,7 @@ class OnewheelGoogle < Handler
config :safe_search, required: false, default: 'medium'

route /^google\s+(.*)$/i, :search, command: true
route /^g\s+(.*)$/i, :search, command: true

def search(response)
query = response.matches[0][0]
Expand Down

0 comments on commit 328b2af

Please sign in to comment.