 module.exports = (robot) ->
 
   setTimeout((->
+
     console.log('------------------------------------------')
     console.log('initialising tflobby script')
     console.log('------------------------------------------')
 
-    if (lobby = robot.brain.get('tflobby.lobby'))?
+    if (lobby = @brain.get('tflobby.lobby'))?
       console.log('attempting to resurrect current!!')
       resurrected = resurrect(lobby)
       console.log(resurrected)
-      robot.brain.set('tflobby.lobby', resurrected)
+      @brain.set('tflobby.lobby', resurrected)
 
-    if (previous = robot.brain.get('tflobby.previous'))?
+    if (previous = @brain.get('tflobby.previous'))?
       console.log('attempting to resurrect previous!!')
       resurrected = resurrect(previous)
       console.log(resurrected)
-      robot.brain.set('tflobby.previous', resurrected)
+      @brain.set('tflobby.previous', resurrected)
 
     # chat.flava
-    robot.brain.set(
+    @brain.set(
       'tflobby.chat.flava',
       [
         'you can be my wingman any time.',

    )

    # chat.mistake
    robot.brain.set(
      'tflobby.chat.mistake',
      [
        'um,',

      mapsByMode[mode] = [] unless mapsByMode[mode]?
      mapsByMode[mode].push(map)

    @brain.set('tflobby.maps.all', maps)
    @brain.set("tflobby.maps.#{mode}", maps) for mode, maps of mapsByMode
    @brain.set('tflobby.maps.popular', popularMaps)
    @brain.set('tflobby.servers.all', servers)
    @brain.set('tflobby.servers.names', Object.keys(servers))
    @brain.set('tflobby.servers.default', defaultServer)

    path = Path.resolve(__dirname, 'src')

