Skip to content

Instantly share code, notes, and snippets.

@kfr2
Created June 23, 2014 22:26
Show Gist options
  • Save kfr2/35fc387dd31702d2642c to your computer and use it in GitHub Desktop.
Save kfr2/35fc387dd31702d2642c to your computer and use it in GitHub Desktop.
Have Hubot celebrate a successful build with a dance!
# Description:
# Celebrate a successful build with a victory dance!
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_DISABLE_VICTORY - if set, the victory dance shall not occur
#
# Commands:
# None
#
# Author:
# kfr2
#
images = [
"http://i73.photobucket.com/albums/i228/rodanski24/RedMage-Victory.gif",
"http://i73.photobucket.com/albums/i228/rodanski24/Thief-Victory.gif",
"http://i73.photobucket.com/albums/i228/rodanski24/WhiteMage-Victory.gif",
"http://i73.photobucket.com/albums/i228/rodanski24/BlackBelt-Victory.gif",
"http://i73.photobucket.com/albums/i228/rodanski24/BlackMage-Victory.gif"
]
module.exports = (robot) ->
robot.hear /Build succeeded/i, (message) ->
unless process.env.HUBOT_DISABLE_VICTORY?
message.send message.random images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment