Skip to content

Instantly share code, notes, and snippets.

@mwhuss
Last active August 29, 2015 14:03
Show Gist options
  • Save mwhuss/40995c5439decde28045 to your computer and use it in GitHub Desktop.
Save mwhuss/40995c5439decde28045 to your computer and use it in GitHub Desktop.
hubot app review times
# Description:
# Fetch iOS App Store average review times.
#
# Commands:
# bot review times
# bot review time
#
# deps: "scraper": "~0.0.9"
scraper = require 'scraper'
module.exports = (robot) ->
robot.respond /review times?/i, (msg) ->
scraper 'http://appreviewtimes.com', (err, jQuery) ->
throw err if err
time = jQuery(".ios .time .average").text()
msg.send "Average iOS review time is " + time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment