Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Replace corgime backend generator with one that works
Browse files Browse the repository at this point in the history
corgime.herokuapp.com giving Internal Server Error errors and I just really want corgi's please. Lovingly ripped from https://github.com/erichmenge/hubot
  • Loading branch information
parkr committed Apr 15, 2014
1 parent b2a30dc commit 599450d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/corgime.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
module.exports = (robot) ->

robot.respond /corgi me/i, (msg) ->
msg.http("http://corgibomb.heroku.com/random")
msg.http("http://corginator.herokuapp.com/random")
.get() (err, res, body) ->
msg.send body
msg.send JSON.parse(body).corgi

robot.respond /corgi bomb( (\d+))?/i, (msg) ->
count = msg.match[2] || 5
msg.http("http://corgibomb.heroku.com/bomb/" + count)
msg.http("http://corginator.heroku.com/bomb?count=" + count)
.get() (err, res, body) ->
msg.send corgi for corgi in JSON.parse(body)
msg.send corgi for corgi in JSON.parse(body).corgis

1 comment on commit 599450d

@therealklanni
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh the irony.

Please sign in to comment.