Refactor: Add conditional import for moviepy to handle missing dependency gracefully

This commit is contained in:
pancakes-proxy 2025-05-20 07:53:00 +09:00
parent d82f4e53c0
commit 44ffe8fd2f

View File

@ -9,7 +9,11 @@ import py7zr
import tempfile
import os
from pydub import AudioSegment
import moviepy.editor as mp
try:
import moviepy.editor as mp
except ImportError:
print("moviepy is NOT installed in this environment")
class FileConvert(commands.Cog):
def __init__(self, bot):