pacnpal 08d5dc56cf Fixed role_manager.py typing issues by adding missing imports (Optional, Any)
Added process_queue method to EnhancedVideoQueueManager and updated its initialization
Updated component_manager.py to use EnhancedVideoQueueManager correctly
Fixed circular imports in the core module by:
Moving initialization logic to lifecycle.py
Making initialization.py provide thin wrappers that delegate to lifecycle.py
Ensuring proper import order in base.py
Verified all module init.py files are properly exposing their components:
core/init.py exposes VideoArchiver
queue/init.py exposes EnhancedVideoQueueManager and dependencies
processor/init.py exposes VideoProcessor and related components
commands/init.py exposes command setup functions
The import chain is now clean:

base.py imports from lifecycle.py
lifecycle.py contains all initialization logic
initialization.py delegates to lifecycle.py
No circular dependencies
All components are properly exposed through their respective init.py files
2024-11-16 17:13:11 +00:00
2024-11-15 01:28:06 +00:00
2024-09-28 16:57:47 -04:00
2024-11-15 22:46:33 +00:00
2024-09-28 17:19:34 -04:00
Fix
2024-09-28 17:22:31 -04:00

Pac-cogs - Red Discord Bot Cogs Collection

Welcome to Pac-cogs, a collection of custom cogs for Red. These cogs are designed to add extra functionality to your Red bot instance on Discord.

Installation

To install the cogs in this repository, follow these steps:

  1. Ensure you have Red set up.

  2. Add this repository to your Red instance:

    [p]repo add Pac-cogs https://github.com/pacnpal/Pac-cogs
    
  3. Install the desired cog:

    [p]cog install Pac-cogs videoarchiver
    
  4. Load the installed cog:

    [p]load videoarchiver
    
  5. Install the desired cog:

    # For Birthday cog:
    [p]cog install Pac-cogs birthday
    
    # For Overseerr cog:
    [p]cog install Pac-cogs overseerr
    
    # For VideoArchiver cog:
    [p]cog install Pac-cogs videoarchiver
    
  6. Load the installed cog:

    # For Birthday cog:
    [p]load birthday
    
    # For Overseerr cog:
    [p]load overseerr
    
    # For VideoArchiver cog:
    [p]load videoarchiver
    

Replace [p] with your bot's prefix.

Additional Requirements

  • Birthday: No additional requirements. Just configure the birthday role, timezone, and allowed roles after installation. Supports both traditional commands, slash commands, and context menu interactions.

  • Overseerr: Requires a running Overseerr instance and API key. You'll need to configure the Overseerr URL and API key after installation using:

    [p]overseerr url <your-overseerr-url>
    [p]overseerr apikey <your-api-key>
    
  • VideoArchiver: The cog requires FFmpeg for video processing. The cog will attempt to download and manage FFmpeg automatically if it's not found on your system. The required Python packages (yt-dlp, ffmpeg-python, requests) will be installed automatically during cog installation.

VideoArchiver Commands and Features

The VideoArchiver cog now comes with enhanced features and a comprehensive set of slash commands for easy management.

Default Behavior

  • Video archiving is enabled by default for new servers
  • All channels are monitored by default (can be restricted using commands)
  • All users can trigger archiving by default (can be restricted using commands)
  • All video sites are supported by default (can be restricted using commands)

Core Commands

  • /archiver settings - View all current settings
  • /archiver enable, /archiver disable - Toggle video archiving
  • /archiver queue - View the current processing queue

Channel Management

  • /archiver setchannel - Set the archive channel
  • /archiver setlog - Set the log channel
  • /archiver addchannel - Add a channel to monitor
  • /archiver removechannel - Remove a channel from monitoring

Video Settings

Description
A collection of custom cogs for RedBot, aimed at enhancing Discord bot functionality with various automation and management features.
Readme GPL-3.0 1.2 MiB
Languages
Python 100%