You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
# Show some random person from facebook - their image, name, gender and nationality.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot stranger me - Meet someone new from facebook
#
# Author:
# joelongstreet
module.exports = (robot) ->
robot.respond /stranger me/i, (msg) ->
msg.http("http://facehold.it/hubot")
.get() (err, res, body) ->
stranger = JSON.parse(body)
msg.send "Meet #{stranger.name}, the #{stranger.nationality} #{stranger.gender}. Learn more about #{if stranger.gender == 'male' then 'him' else 'her'} at #{stranger.url}"