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:
pacnpal
2024-11-16 01:22:37 +00:00
parent 01a9067368
commit 609aecdc4e
5 changed files with 205 additions and 33 deletions

View File

@@ -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",