Skip to content

Commit

Permalink
Revert "whatever, use imgur"
Browse files Browse the repository at this point in the history
This reverts commit 9ada9f7.
  • Loading branch information
ajb committed Mar 3, 2016
1 parent 9ada9f7 commit a2da8a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"hubot-github-todos": "0.4.0",
"hubot-irc": "^0.2.7",
"hubot-scripts": "2.5.11",
"imgur": "^0.1.7",
"nightmare": "^1.7.0",
"prettyjson": "^1.1.3",
"request": "~2.34.0",
Expand Down
5 changes: 1 addition & 4 deletions scripts/startup_generator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ _ = require('underscore')
os = require('os')
request = require('request')
fs = require('fs')
imgur = require('imgur')

module.exports = (robot) ->
robot.hear /startup me/i, (msg) ->
Expand Down Expand Up @@ -179,8 +178,6 @@ module.exports = (robot) ->
url = "https://api.browshot.com/api/v1/screenshot/thumbnail?id=#{id}&key=#{apiKey}&left=#{x_coord}&right=#{x_coord + 300}&top=#{y_coord}&bottom=#{y_coord + 200}&width=300&height=200"
request url, (_err, _res, _body) ->
setTimeout ->
imgur.setCredentials('[email protected]', 'zjzpMdA24soxCjV', 'bf98dd8050855c2')
imgur.uploadUrl(url).then (json) ->
msg.send "Introducing... #{name}.\n#{json.data.link}"
msg.send "Introducing... #{name}.\n#{url}"
, 2000
, 4000 # for first screenshot to complete

0 comments on commit a2da8a3

Please sign in to comment.