         lastSaved: false
 
     robot.brain.setAutoSave false
-    robot.brain.resetSaveInterval(600)
-    #robot.brain.resetSaveInterval(10)
+    robot.brain.resetSaveInterval DWEET_AUTOSAVE
 
     getData = ->
         dweet_request robot, '/get/latest/dweet', null, (dweet) ->


DWEET_THING = process.env.DWEET_THING
DWEET_KEY = process.env.DWEET_KEY

toBase64 = (json) ->
    new Buffer(JSON.stringify(json)).toString 'base64'

# Configuration:
#   DWEET_THING
#   DWEET_KEY
#   DWEET_AUTOSAVE
#
# Author:
#   MrSaints
