 # Author:
 #  sethington, stephenyeargin
 
+count_to_return = process.env.UNTAPPD_MAX_COUNT || 10
+
 module.exports = (robot) ->
   QS = require 'querystring'
   UntappdClient = require 'node-untappd'

#  UNTAPPD_API_KEY - Your Untappd API Key
#  UNTAPPD_API_SECRET - Your Untappd API Secret
#  UNATPPD_API_ACCESS_TOKEN - A valid OAuth 2 token
#
# Commands:
#  hubot untappd - Recent friend activity

          msg.send "#{checkin.user.user_name}: #{checkin.beer.beer_name} (#{checkin.beer.beer_style} - #{checkin.beer.beer_abv}%) by #{checkin.brewery.brewery_name} at #{checkin.venue.venue_name} - #{time_ago}"
        else
          msg.send "#{checkin.user.user_name}: #{checkin.beer.beer_name} (#{checkin.beer.beer_style} - #{checkin.beer.beer_abv}%) by #{checkin.brewery.brewery_name} - #{time_ago}"
    , count_to_return

  ##
  # Get User Data
