Refactor code structure for improved readability and maintainability

This commit is contained in:
Slipstream 2025-05-20 21:13:07 -06:00
parent e68e1467a7
commit 9dd1b821ab
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD
2 changed files with 1 additions and 3 deletions

Binary file not shown.

View File

@ -22,9 +22,7 @@ class CaptionCog(commands.Cog, name="Caption"):
self.bot = bot
# Define preferred font names/paths
self.preferred_fonts = [
"impact.ttf", # Common name for Impact font file
"Impact", # Font name Pillow might find if installed system-wide
os.path.join("FONT", "impact.ttf") # Bundled fallback
os.path.join("FONT", "OPTIFutura-ExtraBlackCond.otf") # Bundled fallback
]
def _add_text_to_gif(self, image_bytes: bytes, caption_text: str):