<commit_before>This is a skopjehacklab instance of the erlang irc bot
======================================================

![Erlang CI](https://github.com/gdamjan/erlang-irc-bot-skopjehacklab/workflows/Erlang%20CI/badge.svg)

This is the bot running as `erlbot--` on freenode and connected to several
channels such as #lugola, #nsnd, #razmjenavjestina, etc… It has some more plugins
specific to our use. Its logs are at [irc.softver.org.mk](https://irc.softver.org.mk).

To use it, get [rebar3](https://www.rebar3.org/) and compile everything with:

    rebar3 compile

Then copy `settings.cfg.sample` to `settings.cfg`, edit it to set passwords and nickname, and run it:

    ./run.sh


Note: only Erlang 18 and up will be tested.


Running a release as systemd service
====================================

See the template `erlbot.service` file. You can specify the location of the conf file with the `CONF` environment
variable, and the location of the erlang release (the example uses `/opt/erlbot`, but can be `/usr/lib/erlbot` as well).
To create the release run:

    rebar3 release

That will create a directory in `_build/default/rel/` named `ircbot` with the release. Just copy that to `/opt` with:

    sudo cp -r _build/default/rel/ircbot /opt/erlbot
<commit_msg>make the badge a link<commit_after>This is a skopjehacklab instance of the erlang irc bot
======================================================

[![Erlang CI](https://github.com/gdamjan/erlang-irc-bot-skopjehacklab/workflows/Erlang%20CI/badge.svg)](https://github.com/gdamjan/erlang-irc-bot-skopjehacklab/actions?query=workflow%3A%22Erlang+CI%22)

This is the bot running as `erlbot--` on freenode and connected to several
channels such as #lugola, #nsnd, #razmjenavjestina, etc… It has some more plugins
specific to our use. Its logs are at [irc.softver.org.mk](https://irc.softver.org.mk).

To use it, get [rebar3](https://www.rebar3.org/) and compile everything with:

    rebar3 compile

Then copy `settings.cfg.sample` to `settings.cfg`, edit it to set passwords and nickname, and run it:

    ./run.sh


Note: Erlang 20 works. Older versions won't be tested. Newer currently don't seem to work cause of "tupple calls".


Running a release as systemd service
====================================

See the template `erlbot.service` file. You can specify the location of the conf file with the `CONF` environment
variable, and the location of the erlang release (the example uses `/opt/erlbot`, but can be `/usr/lib/erlbot` as well).
To create the release run:

    rebar3 release

That will create a directory in `_build/default/rel/` named `ircbot` with the release. Just copy that to `/opt` with:

    sudo cp -r _build/default/rel/ircbot /opt/erlbot

{'fraction_non_alphanumeric': 0.1585677749360614, 'fraction_numerical': 0.0076726342710997444, 'mean_word_length': 4.389763779527559, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 2, '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': '6730299', 'n_tokens_mistral': 901, 'n_tokens_neox': 837, 'n_words': 322}