Skip to content

Instantly share code, notes, and snippets.

@donpdonp

donpdonp/gist:4340582

Last active Dec 9, 2015
Embed
What would you like to do?
neuronbot coderwall
function(msg) {
var cmd = /^coderwall\s+(\S+)/
var match = cmd.exec(msg.message)
if(match) {
var username = match[1]
var profile = JSON.parse(http.get("https://coderwall.com/"+username+".json"))
var badge_list = profile.badges.map(function(b){return b.name})
return badge_list.join(', ')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.