<commit_before># slacktion
Build a slash command for Slack without the boilerplate.

## Example
```js
const Command = require('slacktion').Command;

let repeater = Command(DATA_POSTED_BY_SLACK, VALIDATION_TOKEN);

repeater.action(/reverse (.*)/, 'reverse [text]: Repeats back the text in reverse',
    (data, matches, callback) => {
      callback({
        response_type: 'ephemeral',
        text: matches[1].split('').reverse().join('')
      });
    }
  )
  .action(/.*/, '[text]: Repeats back the text',
    (data, matches, callback) => {
      callback({
        response_type: 'ephemeral',
        text: data.text
      });
    }<commit_msg>Simplify example<commit_after># slacktion
Build a slash command for Slack without the boilerplate.

## Example
```js
const Command = require('slacktion').Command;

let repeater = Command(DATA_POSTED_BY_SLACK, VALIDATION_TOKEN);

repeater.action(/.*/, '[text]: Repeats back the text',
    (data, matches, callback) => {
      callback({
        response_type: 'ephemeral',
        text: data.text
      });
    }
{'fraction_non_alphanumeric': 0.14825306893295562, 'fraction_numerical': 0.0009442870632672333, 'mean_word_length': 3.3442622950819674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1807767', 'n_tokens_mistral': 350, 'n_tokens_neox': 329, 'n_words': 86}