<commit_before>ZNC cmd notify
=============

ZNC cmd notify  is a module for [ZNC][] that will send notifications to a command that you
can customize to invoke any action you want (Forward email/SMS messages) for any private 
message or channel highlight that matches a configurable set of conditions.

This project is forked from ZNC to Notifo created by [<NAME>](http://johnmreese.com).

Minor edits made by Benwa.


Compiling
---------

If you have installed ZNC from a Linux distribution's repository, you will most likely
need to install the development package before building this module.  On Ubuntu, this can
be installed with:

    $ sudo aptitude install znc-dev

If you have `make` installed, you can compile the module with:

    $ make

Otherwise, run the full command:

    $ znc-build cmdnotify.cpp


Installation
------------

Create the notify script at /etc/notify.sh that takes
in a message as parameters. Example:

    #!/bin/bash
    echo "$@" | mail <EMAIL>
    EOF
    
Copy the compiled module into your ZNC profile:

    $ cp cmdnotify.so ~/.znc/modules/

Now, load the module in ZNC:

    /msg *status loadmod cmdnotify
<commit_msg>Updated znc build command to reflect new version.<commit_after>ZNC cmd notify
=============

ZNC cmd notify  is a module for [ZNC][] that will send notifications to a command that you
can customize to invoke any action you want (Forward email/SMS messages) for any private 
message or channel highlight that matches a configurable set of conditions.

This project is forked from ZNC to Notifo created by [<NAME>](http://johnmreese.com).

Minor edits made by Benwa.


Compiling
---------

If you have installed ZNC from a Linux distribution's repository, you will most likely
need to install the development package before building this module.  On Ubuntu, this can
be installed with:

    $ sudo aptitude install znc-dev

If you have `make` installed, you can compile the module with:

    $ make

Otherwise, run the full command:

    $ znc-buildmod cmdnotify.cpp


Installation
------------

Create the notify script at /etc/notify.sh that takes
in a message as parameters. Example:

    #!/bin/bash
    echo "$@" | mail <EMAIL>
    EOF
    
Copy the compiled module into your ZNC profile:

    $ cp cmdnotify.so ~/.znc/modules/

Now, load the module in ZNC:

    /msg *status loadmod cmdnotify

{'fraction_non_alphanumeric': 0.0870488322717622, 'fraction_numerical': 0.0, 'mean_word_length': 3.322935779816514, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '278351', 'n_tokens_mistral': 682, 'n_tokens_neox': 639, 'n_words': 321}