Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bnb32/modbot

This moderation bot software uses scikit-learn binary classification algorithms or pytorch neural networks to learn what phrases to allow in twitch chat. Labeled training data is constructed from chat logs with human moderation information. After training the software can be connected to twitch chat to automate moderation.
https://github.com/bnb32/modbot

irc-bot machine-learning moderation-bot pubsub twitch

Last synced: about 1 month ago
JSON representation

This moderation bot software uses scikit-learn binary classification algorithms or pytorch neural networks to learn what phrases to allow in twitch chat. Labeled training data is constructed from chat logs with human moderation information. After training the software can be connected to twitch chat to automate moderation.

Awesome Lists containing this project

README

        

*********************
Welcome to Modbot!
*********************

This moderation bot software uses scikit-learn binary classification algorithms or pytorch neural networks to learn what phrases to allow in twitch chat. Labeled training data is constructed from chat logs with human moderation information. After training the software can be connected to twitch chat to automate moderation.

.. image:: https://github.com/bnb32/modbot/workflows/Documentation/badge.svg
:target: https://bnb32.github.io/modbot/

.. image:: https://github.com/bnb32/modbot/workflows/Pytests/badge.svg
:target: https://github.com/bnb32/modbot/actions?query=workflow%3A%22Pytests%22

.. image:: https://github.com/bnb32/modbot/workflows/Lint%20Code%20Base/badge.svg
:target: https://github.com/bnb32/modbot/actions?query=workflow%3A%22Lint+Code+Base%22

.. image:: https://codecov.io/gh/bnb32/modbot/branch/main/graph/badge.svg
:target: https://codecov.io/gh/bnb32/modbot

Installation
============

Follow instructions `here `_

Environment variables
=====================

Register bot with twitch and get Client ID and Client Secret `here `_.

Get `Oauth Token `_.

Update variables in ``config.json`` and ``__init__.py``.

.. code-block:: bash

cd modbot/environment/
cp config.json ../../my_config.json
vim my_config.json
vim __init__.py
cd ../../

Training Model
==============

From scratch with classified messages in csv file
(with columns ``text``, ``is_offensive``):

.. code-block:: bash

modbot-train -train -infile -c my_config.json

Train from scratch from chatty data:

.. code-block:: bash

modbot-train -infile -train -clean -c my_config.json

Retrain with additional chatty data:

.. code-block:: bash

modbot-train -append -infile -train -clean -c my_config.json

Running
=======

Run bot:

.. code-block:: bash

modbot -c my_config.json

.. inclusion-intro