 				commentId = message.replace ".", ""
 				console.log "IRC => postAddCommentHeart: ", user, commentId,
 					message, channelId, info.mixlrUserLogin, info.mixlrAuthSession
-				postAddCommentHeart commentId, info
+				postAddCommentHeart commentId, info, userAgent
 			else
 				console.log "IRC => postComm: ", user, message, channelId,
 					info.mixlrUserLogin, info.mixlrAuthSession
-				postComm message, channelId, info
+				postComm message, channelId, info, userAgent
 
 sendHTTP = (httpHeader, data) ->
 	httpReq = http.request httpHeader, (res) ->


# Opens a websocket connection and receives data as long as the connection remains open
# TODO: add in the ping function (seems to be every 5 minutes)
openSock = (channelId) ->
	broadcastStart = false
	channelSocket = JSON.stringify
		"event":

	ws.on 'close', ->
		console.log "WebSocket Closed"

startBot = () ->
	# Starts up the IRC bot according to above config
	ircInitBot()
	# Opens a websocket connection, given the params below
	openSock()

if useFirebase
	firebase = require('firebase')
	auth = require('./auth.json')
	db = new firebase(auth.domain)
	db.auth auth.token, (error) ->
		if error
			console.log "[FAIL] Firebase Authication: ", error
		else
			console.log "[PASS] Firebase Authenticated"
	dataRef = new firebase(auth.domain)
	dataRef.on 'value', (snapshot) ->
		data = snapshot.val()
		ircNick = data.config.ircNick
		ircChannel = data.config.ircChannel
		ircServer = data.config.ircServer
		channelId = data.config.channelId
		userAgent = data.config.userAgent
		userList = data.users
		ignoreList = data.ignoreList
		startBot()

else
	# This should be replaced by a dict of prod/bob/haji that lets you select
	# See http://api.mixlr.com/users/jeff-gerstmann for example channelId ("id")
	botDefaults = 
		ircNick: "jefflrbot"
		ircChan: "#JeffDrives"
		ircServ: "irc.freenode.org"
		mixChan: 27902

	botPersonalities =
		"jefflr2":
			ircNick: "jefflrbot2"
			ircChan: "#JeffDrives2"
		"haji":
			ircNick: "devvlrbot"
			ircChan: "#JeffDevs"

	for name, opts in botPersonalities when process.argv is name
		for key, val in opts
			botDefaults[key] = val

	# Won't Mixlr => IRC relay if from these usernames
	ignoreList = [
		"Minnie Marabella",
		"WERD SLLIM"
	]
	# Ideally:
	# .info minnie
	# -> jefflr returns a minnie infospiel, including uid
	# .ignore uid
	# -> jefflr fucks off the uid and all aliases

	# Users for IRC => Mixlr relay
	userList =
		"BobBarker":
			"mixlrUserLogin": ""
			"mixlrAuthSession": ""
			"canHeart": true
		"Hajitorus":
			"mixlrUserLogin": ""
			"mixlrAuthSession": ""
			"canHeart": true

# vim: set noet ts=4:
