Skip to main content

"# Kryten Moderator

Kryten moderation service - handles chat moderation and filtering for CyTube.

Features

  • Real-time chat message monitoring
  • User tracking and management
  • Event-driven architecture using NATS
  • Extensible moderation rules

Installation

Prerequisites

  • Python 3.10 or higher
  • Poetry
  • NATS server running
  • kryten-py library

Setup

  1. Install dependencies:
uv sync
  1. Copy the example configuration:
cp config.example.json config.json
  1. Edit config.json with your settings:
{
  "nats_url": "nats://localhost:4222",
  "nats_subject_prefix": "kryten",
  "service_name": "moderator"
}

Usage

Running the Service

Using Poetry:

uv run kryten-moderator --config config.json

Using the startup script (PowerShell):

.\start-moderator.ps1

Using the startup script (Bash):

./start-moderator.sh

Command Line Options

  • --config PATH: Path to configuration file (default: /etc/kryten/moderator/config.json)
  • --log-level LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)

Event Handling

The service currently listens for:

  • chatMsg: Chat messages from users
  • addUser: User join events

Development

Running Tests

uv run pytest

Linting

uv run ruff check .

Formatting

uv run black .

License

MIT License - see LICENSE file for details "

Metadata

Release files for kryten-moderator 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kryten-moderator 0.8.2
File Size Uploaded Provenance Actions
kryten_moderator-0.8.2.tar.gz 220.5 kB Without provenance Details for kryten_moderator-0.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kryten-moderator 0.8.2
File Interpreter ABI Platform Actions
kryten_moderator-0.8.2-py3-none-any.whl Python 3 none any Details for kryten_moderator-0.8.2-py3-none-any.whl

Total release size: 256.6 kB

Release files / kryten_moderator-0.8.2.tar.gz

Download URL kryten_moderator-0.8.2.tar.gz
Size 220.5 kB
Tags Source
SHA-256 checksum
How to use checksums
232c2caec15bb7c2384f594742d242b9adda00e25ec674bdc44a665c4b41e5e5
BLAKE2b-256 checksum
How to use checksums
a6338d14200074afe42cbc53d87f78e2e025a75b40f6c8676f43b617fd90f44d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / kryten_moderator-0.8.2-py3-none-any.whl

Download URL kryten_moderator-0.8.2-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acc6178cbeca832f3ce85d20a7cd13579c301e5598a7a75d146137e5d3ec0199
BLAKE2b-256 checksum
How to use checksums
19121d8455256fbde02468f2e86e779b3fc5a7ebf8ef2547e3a7f956b64a259b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for kryten-moderator 0.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page