{"id":16755184,"url":"https://github.com/bnb32/modbot","last_synced_at":"2025-03-16T06:21:21.916Z","repository":{"id":40325089,"uuid":"504876593","full_name":"bnb32/modbot","owner":"bnb32","description":"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.","archived":false,"fork":false,"pushed_at":"2022-11-20T00:49:08.000Z","size":3534,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T18:51:22.219Z","etag":null,"topics":["irc-bot","machine-learning","moderation-bot","pubsub","twitch"],"latest_commit_sha":null,"homepage":"https://bnb32.github.io/modbot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bnb32.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-18T15:12:59.000Z","updated_at":"2022-11-20T00:44:41.000Z","dependencies_parsed_at":"2023-01-22T11:46:05.261Z","dependency_job_id":null,"html_url":"https://github.com/bnb32/modbot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb32%2Fmodbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb32%2Fmodbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb32%2Fmodbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb32%2Fmodbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnb32","download_url":"https://codeload.github.com/bnb32/modbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243832627,"owners_count":20355120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["irc-bot","machine-learning","moderation-bot","pubsub","twitch"],"created_at":"2024-10-13T03:07:01.233Z","updated_at":"2025-03-16T06:21:21.889Z","avatar_url":"https://github.com/bnb32.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"*********************\nWelcome to Modbot!\n*********************\n\nThis 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.\n\n\n.. image:: https://github.com/bnb32/modbot/workflows/Documentation/badge.svg\n    :target: https://bnb32.github.io/modbot/\n\n.. image:: https://github.com/bnb32/modbot/workflows/Pytests/badge.svg\n    :target: https://github.com/bnb32/modbot/actions?query=workflow%3A%22Pytests%22\n\n.. image:: https://github.com/bnb32/modbot/workflows/Lint%20Code%20Base/badge.svg\n    :target: https://github.com/bnb32/modbot/actions?query=workflow%3A%22Lint+Code+Base%22\n\n.. image:: https://codecov.io/gh/bnb32/modbot/branch/main/graph/badge.svg\n    :target: https://codecov.io/gh/bnb32/modbot\n\n\nInstallation\n============\n\nFollow instructions `here \u003chttps://bnb32.github.io/modbot/misc/install.html\u003e`_\n\n\nEnvironment variables\n=====================\n\nRegister bot with twitch and get Client ID and Client Secret `here \u003chttps://dev.twitch.tv/console/apps\u003e`_.\n\n\nGet `Oauth Token \u003chttps://twitchapps.com/tmi/\u003e`_.\n\n\nUpdate variables in ``config.json`` and ``__init__.py``.\n\n.. code-block:: bash\n\n    cd modbot/environment/\n    cp config.json ../../my_config.json\n    vim my_config.json\n    vim __init__.py\n    cd ../../\n\nTraining Model\n==============\n\nFrom scratch with classified messages in csv file\n(with columns ``text``, ``is_offensive``):\n\n.. code-block:: bash\n\n    modbot-train -train -infile \u003cmessages.csv\u003e -c my_config.json\n\nTrain from scratch from chatty data:\n\n.. code-block:: bash\n\n    modbot-train -infile \u003cinfile\u003e -train -clean -c my_config.json\n\nRetrain with additional chatty data:\n\n.. code-block:: bash\n\n    modbot-train -append -infile \u003cinfile\u003e -train -clean -c my_config.json\n\n\nRunning\n=======\n\nRun bot:\n\n.. code-block:: bash\n\n    modbot -c my_config.json\n\n\n.. inclusion-intro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnb32%2Fmodbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnb32%2Fmodbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnb32%2Fmodbot/lists"}