Permalink
8657b2f Mar 4, 2013
27 lines (24 sloc) 584 Bytes
# Description:
# Display a random image of Scotch
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# scotch me - supply a user with scotch
#
# Author:
# fusion94
scotch = [
"https://s3.amazonaws.com/scotch-assets/scotch_1.jpg",
"https://s3.amazonaws.com/scotch-assets/scotch_2.jpg",
"https://s3.amazonaws.com/scotch-assets/scotch_3.jpg",
"https://s3.amazonaws.com/scotch-assets/scotch_4.jpg",
"https://s3.amazonaws.com/scotch-assets/scotch_5.jpg"
]
module.exports = (robot) ->
robot.hear /scotch ?me/i, (msg) ->
msg.send msg.random scotch