Skip to content

Commit

Permalink
Merge pull request github#114 from KuiKui/master
Browse files Browse the repository at this point in the history
Correction of a mistake
  • Loading branch information
Tom Bell committed Nov 8, 2011
2 parents 8b0d9da + 9476d35 commit 7469687
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/destiny.coffee
@@ -1,9 +1,9 @@
# Is the day ?
# Is it the day ?
#
# is the <action> day ? - Returns if it's the day for your action.
# is it <action> day ? - Returns if it's the day for your action.
#
module.exports = (robot) ->
robot.respond /is the (\w+) day \?/i, (msg) ->
robot.respond /is it (\w+) day \?/i, (msg) ->
action = msg.match[1]
nbDay = Math.floor(new Date().getTime() / 1000 / 86400)
actionHash = action.length + action.charCodeAt(0) + action.charCodeAt(action.length - 1)
Expand All @@ -12,4 +12,4 @@ module.exports = (robot) ->
if destiny > limit
msg.send "Sorry, it's not " + action + " day. But try tomorrow..."
else
msg.send "Yes, it's the " + action + " day !"
msg.send "Yes, it's " + action + " day !"

0 comments on commit 7469687

Please sign in to comment.