mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
Updated default settings (video archiving enabled by default)
New database functionality and commands Additional video format support (MKV) Message duration now in hours (0-168) Enhanced error handling and logging Queue persistence and management improvements Hardware acceleration updates More detailed command descriptions Improved performance & limitations documentation
This commit is contained in:
@@ -13,6 +13,7 @@ class ConfigManager:
|
||||
"""Manages guild configurations for VideoArchiver"""
|
||||
|
||||
default_guild = {
|
||||
"enabled": False, # Added the enabled setting
|
||||
"archive_channel": None,
|
||||
"notification_channel": None,
|
||||
"log_channel": None,
|
||||
@@ -87,7 +88,7 @@ class ConfigManager:
|
||||
elif setting in ["message_template"] and not isinstance(value, str):
|
||||
raise ConfigError("Message template must be a string")
|
||||
|
||||
elif setting in ["delete_after_repost", "disable_update_check"] and not isinstance(value, bool):
|
||||
elif setting in ["enabled", "delete_after_repost", "disable_update_check"] and not isinstance(value, bool):
|
||||
raise ConfigError(f"{setting} must be a boolean")
|
||||
|
||||
except Exception as e:
|
||||
@@ -275,6 +276,11 @@ class ConfigManager:
|
||||
allowed_roles.append(role.name)
|
||||
|
||||
# Add fields with proper formatting
|
||||
embed.add_field(
|
||||
name="Enabled",
|
||||
value=str(settings["enabled"]),
|
||||
inline=False
|
||||
)
|
||||
embed.add_field(
|
||||
name="Archive Channel",
|
||||
value=archive_channel.mention if archive_channel else "Not set",
|
||||
|
||||
Reference in New Issue
Block a user