Skip to content

Commit

Permalink
Merge pull request #72 from tak2siva/master
Browse files Browse the repository at this point in the history
added alternative queries to datetime
  • Loading branch information
pannous committed May 15, 2014
2 parents e2347c6 + 46de989 commit 2efb6bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/datetime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Datetime
def self.interpret(command)
responses = []

if command.match(/^what\s+time\sis\sit\??$/i) || command.match(/^what\s+is\sthe\stime$/i)
if command.match(/^what\s+time\sis\sit\??$/i) || command.match(/^what\s+is\sthe\stime$/i) || command.match(/^what\s+is\sthe\stime\snow\??$/i)
responses << {
:command => "date +\"%T\"",
:explanation => "Gets the current time."
Expand Down Expand Up @@ -42,7 +42,8 @@ def self.help
:usage => ["- betty what time is it",
"- betty what is todays date",
"- betty what month is it",
"- betty whats today"]
"- betty whats today",
"- betty what is the time now"]
}
commands
end
Expand Down

0 comments on commit 2efb6bf

Please sign in to comment.