Permalink
Browse files

adding more profile info to coderwall.coffee

  • Loading branch information...
1 parent 82f54b7 commit 3694ce92721714df88ccb986ae4394742099bc40 @bobwilliams bobwilliams committed Jun 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/scripts/coderwall.coffee
@@ -26,8 +26,10 @@ module.exports = (robot) ->
else
profile = JSON.parse(body)
# Give an intro to the coderwall profile
- resp_str = "";
- resp_str += user + "'s coderwall -> http://coderwall.com/"+user + "\n"
+ resp_str = profile.name + " from " + profile.location + " \n"
+ resp_str += "coderwall -> http://coderwall.com/"+user + "\n"
+ resp_str += "github -> https://github.com/" + profile.accounts.github + "\n"
+ resp_str += profile.username + " has " + profile.endorsements + " endorsements and " + profile.badges.length + " badges\n"
# Iterate all badges and continue building string
profile.badges.forEach (badge) ->
resp_str += "[" + badge.name + "] - " + badge.description + "\n"

0 comments on commit 3694ce9

Please sign in to comment.