UNPKG

hubot-scripts

Version:

Allows you to opt in to a variety of scripts

27 lines (24 loc) 584 B
# 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