         result = @brain.data.users[k]
     result
 
+  # Public: Run Hubot using the loaded adapter.
+  #
+  # Returns nothing.
   run: ->
     @adapter.run()
 
 class Robot.Adapter
+  # An adapter is a specific interface to a chat source for robots.
+  #
+  # robot - A Robot instance.
   constructor: (@robot) ->
 
   # Public: Raw method for sending data back to the chat source.  Extend this.

        continue if !line.match('-')
        @commands.push line[2..line.length]

  users: ->
    @brain.data.users



    @resetSaveInterval 5

  # Emits the 'save' event so that 'brain' scripts can handle persisting.
  #
  # Returns nothing.
  save: ->
    @emit 'save', @data

  # Emits the 'close' event so that 'brain' scripts can handle closing.
  #
  # Returns nothing.
  close: ->
    clearInterval @saveInterval
    @save()
    @emit 'close'

  # Reset the interval between save function calls.
  #
  # seconds - An Integer of seconds between saves.
  #
  # Returns nothing.
  resetSaveInterval: (seconds) ->
    clearInterval @saveInterval if @saveInterval
    @saveInterval = setInterval =>
