Skip to main content

LXMFy News Bot using RSS and trafilatura to fetch full-text

Project description

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

or

pipx install lxmfy-news-bot

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 v0.6.0")
  • 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

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

lxmfy_news_bot-0.6.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

lxmfy_news_bot-0.6.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file lxmfy_news_bot-0.6.0.tar.gz.

File metadata

  • Download URL: lxmfy_news_bot-0.6.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lxmfy_news_bot-0.6.0.tar.gz
Algorithm Hash digest
SHA256 99edfb0516845c7d9f4384d655a860638b5407b861ded573b5cf95134b55cb3a
MD5 edc1f50fae11b0604d310507483c11c1
BLAKE2b-256 1bdbe47e1e97a008a423ba717cb9877885a8cac14332e221ace6000198231976

See more details on using hashes here.

Provenance

The following attestation bundles were made for lxmfy_news_bot-0.6.0.tar.gz:

Publisher: publish.yml on lxmfy/news-bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lxmfy_news_bot-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: lxmfy_news_bot-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lxmfy_news_bot-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9336fdd8d0f8b18837b81f7661755e622ab1f2cc9fd1bbdb9e2c4a9b4d8bc881
MD5 3bfc52537b348660e37229b2f7e42e68
BLAKE2b-256 4a03501348bb490b3103a9cb8b592366a1400abd0d74dc171d796daf508fe15f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lxmfy_news_bot-0.6.0-py3-none-any.whl:

Publisher: publish.yml on lxmfy/news-bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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