 
 check_interval_ms = process.env.HUBOT_TRELLO_INTERVAL ? 1000 * 60 * 5
 checker = undefined
-trello_key = process.env.HUBOT_TRELLO_KEY
-trello_token = process.env.HUBOT_TRELLO_TOKEN
-trello_board_id = process.env.HUBOT_TRELLO_BOARD_ID
-trello_notify_room = process.env.HUBOT_TRELLO_NOTIFY_ROOM
-
-last_notif_id = undefined
-
+config =
+  key: process.env.HUBOT_TRELLO_KEY
+  token: process.env.HUBOT_TRELLO_TOKEN
+  board_id: process.env.HUBOT_TRELLO_BOARD_ID
+  notify_room: process.env.HUBOT_TRELLO_NOTIFY_ROOM
 filter_actions =
   changeCard: (notif) ->
     if 'listAfter' not of notif.data

    get_notifs options, (notifs) ->
      console.info "#{notifs.length} new notifications received"
      for notif in notifs
        robot.messageRoom(trello_notify_room, notif)
    , (err) ->
      msg.send "Error: #{err}"
  , check_interval_ms

#   this can be changed
#
#   Get app token by heading to https://trello.com/1/connect?
#       key=#{HUBOT_TRELLO_KEY}&name=<desired_app_name_here>&
#       response_type=token&scope=read,write&expiration=never
#
# Author:
