 
 board = {}
 lists = {}
+members = {}
 
 Trello = require 'node-trello'
 

      msg.reply "Sorry boss, I couldn't move that card after all." if err
      msg.reply "Yep, ok, I moved that card to #{list_name}." unless err

module.exports = (robot) ->
  # fetch our board data when the script is loaded
  ensureConfig console.log

      msg.send "* [#{card.shortLink}] #{card.name} - #{card.shortUrl}" for card in data.cards unless err and data.cards.length == 0
      msg.reply "No cards are currently in the #{data.name} list." if data.cards.length == 0 and !err

getMemberId = (msg, member_name) ->
  if (members[member_name.toLowerCase()]?)
     id = members[member_name.toLowerCase()].id
  msg.send "Unable to find person named: #{member_name}" unless id?
  if id?
     msg.send " * " + id

addMember = (msg, card_id, member_name) ->
  if (members[member_name.toLowerCase()]?)
     id = members[member_name.toLowerCase()].id
  msg.send "Unable to find person named: #{member_name}" unless id?
  if id?
     trello.put "/1/cards/#{card_id}/idMembers", {value: id}, (err, data) ->
       msg.reply "Sorry captain, I couldn't add that member" if err
       msg.reply "Success! #{member_name} was added" unless err

moveCard = (msg, card_id, list_name) ->
  ensureConfig msg.send
  id = lists[list_name.toLowerCase()].id
