From 7e4b33dd558e0e61294372f21a21e20635b135bf Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:47:57 +0000 Subject: [PATCH] refactor: Convert commands to unique hybrid commands - Reorganized commands into logical groups with unique prefixes: - va_: Core video archiver commands - vaq_: Queue management commands - vac_: Channel configuration commands - var_: Role management commands - vas_: Site management commands - Updated all commands to be hybrid commands - Updated README to reflect new command structure - Maintained all existing functionality and parameters --- videoarchiver/README.md | 63 ++++++++-------- videoarchiver/commands.py | 148 +++++++++++++++++++------------------- 2 files changed, 103 insertions(+), 108 deletions(-) diff --git a/videoarchiver/README.md b/videoarchiver/README.md index 450e934..db8ad6e 100644 --- a/videoarchiver/README.md +++ b/videoarchiver/README.md @@ -45,43 +45,40 @@ A powerful video archiving cog that automatically downloads and reposts videos f ## Commands -All commands support both prefix (`[p]videoarchiver` or `[p]va`) and slash command (`/videoarchiver`) syntax: +All commands support both prefix and slash command syntax: -### Core Settings -- **`setchannel `**: Set the archive channel -- **`setnotification `**: Set the notification channel -- **`setlogchannel `**: Set the log channel for errors -- **`setformat `**: Set video format -- **`setquality <144-4320>`**: Set maximum video quality (in pixels) -- **`setmaxsize <1-100>`**: Set maximum file size (in MB) -- **`setconcurrent <1-5>`**: Set number of concurrent downloads +### Core Video Archiver Commands (va_) +- **`va_settings`**: Show current video archiver settings +- **`va_format `**: Set video format +- **`va_quality <144-4320>`**: Set maximum video quality (in pixels) +- **`va_maxsize <1-100>`**: Set maximum file size (in MB) +- **`va_concurrent <1-5>`**: Set number of concurrent downloads +- **`va_toggledelete`**: Toggle deletion of local files after reposting +- **`va_duration <0-720>`**: Set message duration in hours (0 for permanent) +- **`va_template