Created
August 22, 2014 07:31
-
-
Save toshinarin/2f743223bd3a73d779f0 to your computer and use it in GitHub Desktop.
hubot-script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# Spice LGTM up with some images. | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: | |
# LGTM - Receive a LGTM image | |
module.exports = (robot) -> | |
robot.hear /LGTM/, (msg) -> | |
msg.http("http://www.lgtm.in/g") | |
.header('Accept', 'application/json') | |
.get() (err, res, body) -> | |
msg.send JSON.parse(body).actualImageUrl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment