 #   hubot-auth - for dynamically configured grouos
 #
 # Configuration:
-#   HUBOT_GROUP_ALIAS: group1=user1,user2;group2=user1,user2,user3 [...]
+#   HUBOT_GROUP_ALIAS: DYNAMIC (or) group1=user1,user2;group2=user1,user2 [...]
 #   HUBOT_GROUP_ALIAS_NAME_PROP: A property on the user object for @metions
 #
 # Commands:
-#   hubot list group aliases - give the names of the defined groups.
+#   hubot list group aliases - give the names of the alias groups.
 #
 # Notes:
 #   Use @group_name in your message and your robot will pass it along to

  else
    return buildGroupObject()

getGroupsList = ->
  if useDynamicGroups
    groups = []
    users = robot.brain.data.users

    return

  robot.respond /list groups?( alias(es)?)?/i, (resp) ->
    groups = listToMentions(getGroupsList(robot))
    resp.send "The currently setup groups are: #{groups}"

  regex = buildRegExp()
  robot.hear regex, (resp) ->
    groups = getGroups(resp.message.text)
    if !_.isEqual(groups, {}) # don't send message if no groups found.
      resp.send expand(resp.message.text, groups, resp.message.user)
