Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… few possibilities
  • Loading branch information...
commit 510c82b7a0fef412c5629d096c6cdcf686734b3e 1 parent 3d4d2ee
@mlocher mlocher authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/scripts/botsnack.coffee
View
13 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
Please sign in to comment.
Something went wrong with that request. Please try again.