   required_args = [
     "HUBOT_GRAPHITE_SEND_HOST"
   ]
-
+  name = "hubot-graphite-send"
   for arg in required_args
     if !nconf.get(arg)
-      buf = "#hubot-graphite-send is not properly configured. #{arg} is not set."
+      buf = "#{name} is not properly configured. #{arg} is not set."
       msg.reply buf
       return false
 

    if err
      console.log "Error adding metric #{err}"
    else
      msg.reply "added metric #{metric}"
  )

module.exports = (robot) ->


deployment_event = (msg, deployment) ->
  text = msg.message.text
  console.log "#{deployment}: #{text}"
  client = get_graphite_client()
  metric = get_graphite_metric text, deployment
  value = get_graphite_metric_value()
