 # Author:
 #	 @commadelimited
 
-
-QS = require 'querystring'
-$ = require 'jquery'
+$ = require 'cheerio'
 
 # what nickname do you want?
 options =

		name = msg.match[2]
		selector = options[type]['selector']
		greeting = options[type]['greeting']
		data = QS.stringify({'realname': name})

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

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

#	 Nickname generator
#
# Dependencies:
#	 "cheerio": "0.10.5"
#
# Configuration:
#   None
