This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

make botsnack a bit more interesting by giving a random answer from a…

… few possibilities
  • Loading branch information...
1 parent 3d4d2ee commit 510c82b7a0fef412c5629d096c6cdcf686734b3e @mlocher mlocher committed Jan 23, 2013
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/scripts/botsnack.coffee
@@ -12,7 +12,16 @@
#
# Author:
# richo
+# locherm
+
+responses = [
+ "Om nom nom!",
+ "That's very nice of you!",
+ "Oh thx, have a cookie yourself!",
+ "Thank you very much.",
+ "Thanks for the treat!"
+]
module.exports = (robot) ->
- robot.hear /^botsnack/i, (msg) ->
- msg.send ":D"
+ robot.hear /botsnack/i, (msg) ->
+ msg.send msg.random responses

0 comments on commit 510c82b

Please sign in to comment.