Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Johnny-RSS-bot

Multi-feed Discord RSS bot with per-feed intervals, admin controls and rotating logs.

Features

  • Multiple RSS feeds
  • Custom feed names
  • Per-feed check interval (min 60s, max 86400s)
  • Rate limited (max 5 posts per check)
  • Admin-only feed management
  • Rotating logs
  • SQLite database (johnny.db)

Requirements

  • Python 3.10+
  • discord.py
  • feedparser
  • beautifulsoup4
  • python-dotenv

Install dependencies:

pip install -r requirements.txt

Setup

  1. Clone repository
  2. Create .env file:
DISCORD_TOKEN=your_bot_token_here
DB_FILE=johnny.db
  1. Run the bot
python johnny.py

Commands

Admin Only

/addfeed name rss_url channel interval_seconds

/editfeed name [new_url] [new_channel] [new_interval]

/removefeed name

Available to everyone

/listfeeds

/latest name count

/latest is limited to 5 items.

Database

The bot uses SQLite (johnny.db) and creates the table automatically on first run.

Logging

Logs are written to:

logs/johnny.log

Rotating:

  • Rotates at midnight
  • Keeps 14 days of history
  • Active log: johnny.log
  • Archived logs: johnny_YYYYMMDD.log

Production Notes

Minimum interval: 60 seconds Maximum interval: 86400 seconds (24h) Max 5 posts per feed check Loop runs every 30 seconds

About

A RSS feed bot for Discord named "Johnny"

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages