Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from snicker/master
Browse files Browse the repository at this point in the history
humanlike language
  • Loading branch information
Elvis committed Apr 18, 2013
2 parents 7573062 + 32d2470 commit f4de4f6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/siriproxy-ipcam.rb
Expand Up @@ -13,11 +13,16 @@ def initialize(config = {})

########## Commands

listen_for(/camera (.*)/i) do |camera|
listen_for /(show me|snapshot for) the (.*) camera/i do |keyword, camera|
check_camera camera.downcase.strip
request_completed
end


listen_for /camera(?: of)?(?: for)?(?: the)? (.*)/i do |camera|
check_camera camera.downcase.strip
request_completed
end

listen_for(/check cameras/i) do
@camUrl.each_key {|camera| check_camera(camera)}
request_completed
Expand Down Expand Up @@ -55,4 +60,4 @@ def push_image(title, image)
end


end
end

0 comments on commit f4de4f6

Please sign in to comment.