 # TODO - ideal commands
 # - createThin layer for parsing commands
 # - add (members|repos) to (team|organization)
-# - list (teams|members|repos) of (extra)
 # - move (member|members|repos|repo) (to|from) (team) to (team)
 # - remove (member|team) from (team|organization)
 

  return false unless (process.env.HUBOT_GITHUB_KEY and process.env.HUBOT_GITHUB_ORG and process.env.HUBOT_SLACK_ADMIN)
  true

getOrgMembers = (msg, orgName) ->
  ensureConfig msg.send
  github.orgs.getMembers org: orgName, per_page: 100, (err, res) ->
    msg.reply "There was an error getting the members for organization: #{orgName}" if err
    msg.send "* <#{user.url}|#{user.login}>" for user in res unless err and res.length == 0


getOrgMember = (msg, username, orgName) ->
  ensureConfig msg.send

    msg.send "#{username} is part of the organization: #{orgName}" unless err




# org = {
