Skip to main content

lemmy_mod_bot is a Lemmy Mod Bot written in Python

Project description

LemmyModBot

A Lemmy bot written in Python using pylemmy to access comment and create reports.

This bot is a work in progress and is expected to expand and grow.

Toxic Content Detection

LemmyModBot can detect and report toxic written content on Lemmy communities using a 512-64-2 bag of words deep text classification Neural Network using Pytorch and a local dataset for training.

The neural network with the supplied training dataset is currently achieving accuracies of around 75-80% in detecting toxic content. Ongoing addition of ambiguous or misclassified data to the training set is hoped to improve this.

Regexp

LemmyModBot can currently detect posts using regular expressions that do not contain a question mark. This functionality is planned to be expended to run arbitrary regular expressions.

User Watchlist

Selected users placed on a watachlist can be reported for moderator review.

Matrix integration

Messages can be sent to a matrix room.

Assessed post and comment history

History is stored in an SQLite database

Example Usage

from lemmybot import LemmyBot

lemmy_world = LemmyBot(rebuild_model=True)

lemmy_world.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lemmy_mod_bot-0.0.5.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lemmy_mod_bot-0.0.5-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file lemmy_mod_bot-0.0.5.tar.gz.

File metadata

  • Download URL: lemmy_mod_bot-0.0.5.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for lemmy_mod_bot-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2150e022dbed97135f0d560dd2cf3a62883839ab82bace5c11f582a186d383bd
MD5 4495fd28035ba8afa32c5ce2bb00306f
BLAKE2b-256 ac213ec99689d033e9a1ce0dd5499acb9481bbe79e2c0d03659cd308a3dfb9f3

See more details on using hashes here.

File details

Details for the file lemmy_mod_bot-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: lemmy_mod_bot-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for lemmy_mod_bot-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 329475daffc2b6665a939d11e8ffff042badcdd996b1620aec41eed4ce501abb
MD5 72dc605f41f936e1e293a1fa3741f819
BLAKE2b-256 4e57dbc98f2ba357385866a65dae95d66f36e02cc04dc3594c2416a70dc27740

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page