Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More lfying high

  • Loading branch information...
commit 2d69a7e37595b9e43e0d837f08278919c1ec1e9b 1 parent daef713
@harukizaemon harukizaemon authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 scripts/flying-high.coffee
View
9 scripts/flying-high.coffee
@@ -1,3 +1,8 @@
+acknowledgements = [
+ "Roger that!",
+ "What's our vector, Victor?"
+]
+
module.exports = (robot) ->
robot.hear /surely you/i, (msg) ->
@@ -15,5 +20,5 @@ module.exports = (robot) ->
robot.hear /OVER/, (msg) ->
msg.reply "ROGER"
- robot.hear /^roger that$/i, (msg) ->
- msg.reply "What's our vector, Victor?"
+ robot.hear /roger that/i, (msg) ->
+ msg.reply msg.random acknowledgements
Please sign in to comment.
Something went wrong with that request. Please try again.