Permalink
Browse files

Add wave personality

  • Loading branch information...
1 parent 28575f6 commit 43af39d7cfaa4d92c58dff1bde37b12bcf29e257 @oldpatricka oldpatricka committed Apr 28, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 scripts/personality.coffee
@@ -9,3 +9,11 @@ module.exports = (robot) ->
]
randomIndex = Math.floor(Math.random() * responses.length);
msg.send responses[randomIndex]
+ robot.hear /wave hubot/i, (msg) ->
+ responses = [
+ "Hey. What's up?",
+ "*sigh* At your service.",
+ "What now?",
+ ]
+ randomIndex = Math.floor(Math.random() * responses.length);
+ msg.send responses[randomIndex]

0 comments on commit 43af39d

Please sign in to comment.