<commit_before><commit_msg>We purposefully trained him wrong... as a joke (ಠ‿ಠ)<commit_after># Description:
#   Display motivational training related imagery
#
# Dependencies:
#   None
#
# Configuration:
#   None
#
# Commands:
#   hubot training
#
# Notes:
#   Ell Oh Ell
#
# Author:
#   <NAME> <<EMAIL>>

trainingMsg = 'http://i.imgur.com/sQWCCGz.png'

module.exports = (robot) ->
  robot.hear /.*(training).*/i, (msg) ->
    r = Math.random()
    if r <= 0.10
      msg.send trainingMsg

  robot.respond /training/i, (msg) ->
    msg.send trainingMsg

{'fraction_non_alphanumeric': 0.15913200723327306, 'fraction_numerical': 0.0054249547920434, 'mean_word_length': 3.1343283582089554, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4428693', 'n_tokens_mistral': 208, 'n_tokens_neox': 202, 'n_words': 48}