def handle_outgoing_webhook(msg)
      return nil unless @options['outgoing_token'].include?(msg[:token]) # ensure messages are for us from slack
      return nil if msg[:user_name] == 'slackbot'  # do not reply to self
      return nil unless msg[:text].is_a?(String) # skip empty messages

      responses = get_responses(msg, msg[:text].strip)

      if responses
        { text: responses.compact.join("\n") }.to_json # webhook responses are json
      end
    end
def handle_outgoing_webhook(msg)
      return nil unless @options['outgoing_token'].include?(msg[:token]) # ensure messages are for us from slack
      return nil if msg[:user_name] == 'slackbot'  # do not reply to self
      return nil unless msg[:text].is_a?(String) # skip empty messages

      responses = get_responses(msg, msg[:text].strip)

      if responses
        { text: responses.compact.join("\n") }.to_json # webhook responses are json
      end
    end
check message and run blocks for any matches