Skip to main content

news-bot

DeepSource Docker Build and Publish

A LXMFy News Bot for the Reticulum Network. Get your daily RSS full-text feeds with instant news access and optional cryptographic signature verification.

Features

  • Instant News: Type news to get the latest headlines from default feeds immediately
  • RSS Feed Subscriptions: Subscribe to any RSS feed with full-text extraction
  • Scheduled Updates: Automatic delivery based on your timezone and preferred schedule
  • Feed Categories: Pre-configured categories like news, military, cybersecurity, and science
  • Admin Commands: Database backup/restore, statistics, and user management

Installation

pip install lxmfy-news-bot

pipx install lxmfy-news-bot

Git:

pipx install git+https://github.com/lxmfy/news-bot.git

The bot will store its data in ~/.local/share/lxmfy-news-bot/

Usage

lxmfy-news-bot

Configuration

The bot supports various environment variables for customization. See .env-example for a complete list of all available configuration options.

Basic Configuration

  • BOT_NAME: Bot display name (default: "LXMFy News Bot")
  • BOT_ANNOUNCE: Announcement interval in seconds (default: 600)
  • BOT_PREFIX: Command prefix (default: "")
  • BOT_ADMINS: Comma-separated list of admin hashes

Security & Signatures

  • BOT_SIGNATURE_VERIFICATION_ENABLED: Enable cryptographic signature verification (default: false)
  • BOT_REQUIRE_MESSAGE_SIGNATURES: Reject unsigned messages when verification is enabled (default: false)

Performance & Limits

  • BOT_RATE_LIMIT: Messages per minute limit (default: 8)
  • BOT_COOLDOWN: Cooldown period in seconds (default: 1)
  • BOT_MAX_WARNINGS: Max warnings before timeout (default: 3)
  • BOT_WARNING_TIMEOUT: Warning timeout in seconds (default: 300)

Storage & Data

  • DATA_DIR: Data directory path (default: platform-specific)
  • BACKUP_DIR: Backup directory path (default: data/backups)
  • CONFIG_DIR: Configuration directory path (default: newsbot/)
  • FEEDS_CONFIG: Custom feeds YAML file path

Docker

docker run -d \
  -v /path/to/data:/app/data \
  -v /path/to/backups:/app/backups \
  -v /path/to/.reticulum:/root/.reticulum \
  -e BOT_NAME="My News Bot" \
  -e BOT_ADMINS="admin1hash,admin2hash" \
  -e BOT_SIGNATURE_VERIFICATION_ENABLED="true" \
  ghcr.io/lxmfy/news-bot:latest

Metadata

Release files for lxmfy-news-bot 0.7.0

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

Source distribution (sdist)

Source distribution for lxmfy-news-bot 0.7.0
File Size Uploaded
lxmfy_news_bot-0.7.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lxmfy-news-bot 0.7.0
File Interpreter ABI Platform
lxmfy_news_bot-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.8 kB

Release files / lxmfy_news_bot-0.7.0.tar.gz

Download URL lxmfy_news_bot-0.7.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7e1b9ed6ca501d8b6f591650bc906de0dd95c588f13a315bfa692547ee42569d
BLAKE2b-256 checksum
How to use checksums
80b56acc6751983a74b3b9473eeefd8e82abad250b8c1ef651a2716a818e1662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2025.

Transparency log

Release files / lxmfy_news_bot-0.7.0-py3-none-any.whl

Download URL lxmfy_news_bot-0.7.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aed2891a23c3bbe6127e322046af8ac9be753851803c27e3476fd74c8560e962
BLAKE2b-256 checksum
How to use checksums
1c6c20948e557d0b177f6ecd863105c2603ae777570751231d91768e73b65569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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