"# Kryten Bingo
Kryten bingo game service - manages bingo games and card tracking 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
- Install dependencies:
poetry install
- Copy the example configuration:
cp config.example.json config.json
- Edit
config.jsonwith your settings:
{
"nats_url": "nats://localhost:4222",
"nats_subject_prefix": "cytube",
"service_name": "kryten-bingo"
}
Usage
Running the Service
Using Poetry:
poetry run kryten-bingo --config config.json
Using the startup script (PowerShell):
.\start-bingo.ps1
Using the startup script (Bash):
./start-bingo.sh
Command Line Options
--config PATH: Path to configuration file (default:/etc/kryten/bingo/config.json)--log-level LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)
Event Handling
The service currently listens for:
- chatMsg: Chat messages for bingo commands
Development
Running Tests
poetry run pytest
Linting
poetry run ruff check .
Formatting
poetry run black .
License
MIT License - see LICENSE file for details "
Release files for kryten-bingo 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kryten_bingo-0.1.1.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kryten_bingo-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / kryten_bingo-0.1.1.tar.gz
| Download URL | kryten_bingo-0.1.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e40e587cf371a1f5a874595967b3847e49bed543e58f61d0b86a9dc35252033
|
|
BLAKE2b-256 checksum How to use checksums |
25b0db6365bb0f2420406d3c5dc85177c641b9951d059996ec1247d0cbb456a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.12.11 Windows/11
|
Release files / kryten_bingo-0.1.1-py3-none-any.whl
| Download URL | kryten_bingo-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d31cd51fb384f611005608e8ff19b58ce8061c120ae7e895ff8f5937b124372
|
|
BLAKE2b-256 checksum How to use checksums |
e350ea5f2ef97f9f334ff8aa3be357a28a839090056c292f748815f3c96196c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.12.11 Windows/11
|