<commit_before># phergie/phergie-irc-plugin-react-command

A plugin for [Phergie](http://github.com/phergie/phergie-irc-bot-react/) to
parse commands issued to the bot.

[![Build Status](https://secure.travis-ci.org/phergie/phergie-irc-plugin-react-command.png?branch=master)](http://travis-ci.org/phergie/phergie-irc-plugin-react-command)

## Install

The recommended method of installation is [through composer](http://getcomposer.org).

```JSON
{
    "require": {
        "phergie/phergie-irc-plugin-react-command": "dev-master"
    }
}
```

See Phergie documentation for more information on installing plugins.

## Configuration

```php
new \Phergie\Irc\Plugin\React\Command\Plugin(array(

    // All configuration is optional

    'prefix' => '!', // string denoting the start of a command

    // or

    'pattern' => '/^!/', // PCRE regular expression denoting the presence of a
                         // command

    // or

    'nick' => true, // true to match common ways of addressing the bot by its
                    // connection nick

))
```

### Usage
<commit_msg>Updated README with current version<commit_after># phergie/phergie-irc-plugin-react-command

A plugin for [Phergie](http://github.com/phergie/phergie-irc-bot-react/) to
parse commands issued to the bot.

[![Build Status](https://secure.travis-ci.org/phergie/phergie-irc-plugin-react-command.png?branch=master)](http://travis-ci.org/phergie/phergie-irc-plugin-react-command)

## Install

The recommended method of installation is [through composer](http://getcomposer.org).

```JSON
{
    "require": {
        "phergie/phergie-irc-plugin-react-command": "1.0.*"
    }
}
```

See Phergie documentation for more information on installing plugins.

## Configuration

```php
new \Phergie\Irc\Plugin\React\Command\Plugin(array(

    // All configuration is optional

    'prefix' => '!', // string denoting the start of a command

    // or

    'pattern' => '/^!/', // PCRE regular expression denoting the presence of a
                         // command

    // or

    'nick' => true, // true to match common ways of addressing the bot by its
                    // connection nick

))
```

### Usage

{'fraction_non_alphanumeric': 0.1439706556625401, 'fraction_numerical': 0.0009170105456212746, 'mean_word_length': 2.8964285714285714, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2692959', 'n_tokens_mistral': 691, 'n_tokens_neox': 654, 'n_words': 166}