<commit_before># Description
#   <description of the scripts functionality>
#
# Dependencies:
#   "<module name>": "<module version>"
#
# Configuration:
#   LIST_OF_ENV_VARS_TO_SET
#
# Commands:
#   hubot <trigger> - <what the respond trigger does>
#   <trigger> - <what the hear trigger does>
#
# URLS:
#   GET /path?param=<val> - <what the request does>
#
# Notes:
#   <optional notes required for the script>
#
# Author:
#   <github username of the original script author>
module.exports = (robot) ->
  robot.brain.set 'standup', null

  robot.hear /\/standup$/i, (msg) ->
    standup = robot.brain.get('standup')
    if !standup
      msg.send "No standup recorded yet."
    else
      msg.send standup

  robot.hear /\/standup (.*)$/i, (msg) ->
    status = msg.message.user.name + ": " + msg.match[1] + "\n"
    standup = robot.brain.get('standup')
    if !standup
      standup = status
    else
      standup += status

    robot.brain.set 'standup', standup
    msg.send "Standup recorded."<commit_msg>Convert standup to hash<commit_after># Description
#   <description of the scripts functionality>
#
# Dependencies:
#   "<module name>": "<module version>"
#
# Configuration:
#   LIST_OF_ENV_VARS_TO_SET
#
# Commands:
#   hubot <trigger> - <what the respond trigger does>
#   <trigger> - <what the hear trigger does>
#
# URLS:
#   GET /path?param=<val> - <what the request does>
#
# Notes:
#   <optional notes required for the script>
#
# Author:
#   <github username of the original script author>
module.exports = (robot) ->
  robot.brain.set 'standup', {}

  robot.hear /\/standup$/i, (msg) ->
    standup = robot.brain.get('standup')
    if Object.keys(standup).length == 0
      msg.send "No standup recorded yet."
    else
      msg.send standup[msg.message.user.name]

  robot.hear /\/standup (.*)$/i, (msg) ->
    status = msg.message.room + ": " + msg.match[1] + "\n"
    standup = robot.brain.get('standup')
    standup[msg.message.user.name] = status
    robot.brain.set 'standup', standup
    msg.send "Standup recorded."

# next - turn standup into hash
#iterate across standup hash for status printout
#multi-dimensional - user and room as keys
# if user & room has already reported, replace status. otherwise add
# command to clear room standup
# command to get full standups list
{'fraction_non_alphanumeric': 0.14013015184381777, 'fraction_numerical': 0.0013015184381778742, 'mean_word_length': 3.2467771639042358, 'pattern_counts': {'":': 4, '<': 25, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2189153', 'n_tokens_mistral': 782, 'n_tokens_neox': 770, 'n_words': 222}