 #	 Nickname generator
 #
 # Dependencies:
-#	 "querystring": "0.1.0"
-#	 "jquery": "1.7.2"
+#	 "cheerio": "0.10.5"
 #
 # Configuration:
 #   None

# Author:
#	 @commadelimited


QS = require 'querystring'
$ = require 'jquery'

# what nickname do you want?
options =

		name = msg.match[2]
		selector = options[type]['selector']
		greeting = options[type]['greeting']
		data = "realname="+ name

		console.log(data)
		msg.http(url)
			.header("Content-Type", "application/x-www-form-urlencoded")
			.post(data) (err, res, body) ->
				response = greeting + $(body).find(selector).text().replace(/\n/g,'').replace(name,'')
				msg.send response

	robot.respond /nick help/i, (msg) ->
