This repository has been archived by the owner. It is now read-only.
Browse files

Fixing `cheer` script

This script was broken due a change at imgur's API json representation. Now the JSON returns the encapsulated images gallery as a `data` element. This error was causing hubot to hang everytime someone tried to use this script
  • Loading branch information...
pellegrino committed Dec 19, 2012
1 parent 9870aee commit 4fb03292b648356273d2194d90584318e27a013a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/
@@ -26,6 +26,6 @@ aww = (msg) ->
.get() (err, res, body) ->
images = JSON.parse(body)
- images =
+ images =
image = msg.random images
msg.send "{image.hash}#{image.ext}"

0 comments on commit 4fb0329

Please sign in to comment.