       mapsByMode[mode] = [] unless mapsByMode[mode]?
       mapsByMode[mode].push(map)
 
-    robot.brain.set('tflobby.maps.all', maps)
-    robot.brain.set("tflobby.maps.#{mode}", maps) for mode, maps of mapsByMode
-    robot.brain.set('tflobby.maps.popular', popularMaps)
-    robot.brain.set('tflobby.servers.all', servers)
-    robot.brain.set('tflobby.servers.names', Object.keys(servers))
-    robot.brain.set('tflobby.servers.default', defaultServer)
+    @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')
 

module.exports = (robot) ->

  setTimeout((->
    console.log('------------------------------------------')
    console.log('initialising tflobby script')
    console.log('------------------------------------------')

    if (lobby = robot.brain.get('tflobby.lobby'))?
      console.log('attempting to resurrect current!!')
      resurrected = resurrect(lobby)
      console.log(resurrected)
      robot.brain.set('tflobby.lobby', resurrected)

    if (previous = robot.brain.get('tflobby.previous'))?
      console.log('attempting to resurrect previous!!')
      resurrected = resurrect(previous)
      console.log(resurrected)
      robot.brain.set('tflobby.previous', resurrected)

    # chat.flava
    robot.brain.set(
      'tflobby.chat.flava',
      [
        'you can be my wingman any time.',

    )

    # chat.affirmative
    @brain.set(
      'tflobby.chat.affirmative',
      [
        'yeah,',
