     process.exit 1
 
   speaker = new AudioShadowSpeaker(Options.remote)
-  bot = new Bot(jenkinsEmitter, Options)
+  bot = new Bot(emitter, Options)
   bot.setLoggingEnabled LOGGING
   pluginIds = (pluginId for pluginId, pluginConfig of Options.plugins)
   bot.loadPlugins pluginIds
 
   jenkinsServer.setUrl Options['jenkins-url']
 
-  jenkinsEmitter.on 'job.refresh', (result) ->
+  emitter.on 'job.refresh', (result) ->
     if (LOGGING) then console.log "JOB REFRESHED >> #{result.jobName} = #{result.result}"
 
-  jenkinsEmitter.on 'job.result.add', (result, jobName, buildNumber) ->
+  emitter.on 'job.result.add', (result, jobName, buildNumber) ->
     unless Options.skipFirst
       if LOGGING then console.log "JOB ADDED >> #{jobName} ##{buildNumber} = #{result}"
       text = sprintf(Labels.getRandom('onJobRegister'), PhoneticHelper.improveJobName(jobName), buildNumber, Labels.getRandom(result))

    if LOGGING then console.log 'TEXT = ' + text
    speaker.text2speech text

  jenkinsEmitter.on 'server.down', ->
    if LOGGING then console.log 'Server down:', arguments
    text = sprintf(Labels.getRandom('onServerDown'))
    if LOGGING then console.log 'TEXT = ' + text
    speaker.text2speech text

  jenkinsEmitter.on 'server.up', ->
    if LOGGING then console.log 'Server up:', arguments
    text = sprintf(getRandomText('onServerUp'))
    if LOGGING then console.log 'TEXT = ' + text


LOGGING = false
jenkinsServer.setLoggingEnabled LOGGING

# TODO
emitter = jenkinsEmitter

###
Configuration & User Options
