From 5b3f9bfaba27a3eb969d024a6fdae5880fb1ebfd Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Tue, 4 Mar 2025 21:45:57 -0500 Subject: [PATCH] Fix dockerfile and bot_manager --- Dockerfile | 2 +- app/internal/bot_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61e9ac3..e1d3960 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,7 +61,7 @@ VOLUME ["/configs"] WORKDIR /app # Copy opus first to break up the build time -COPY ./app/opus /app/opus +COPY ./app/internal/opus /app/internal/opus # Copy the rest of the directory contents into the container at /app COPY ./app /app diff --git a/app/internal/bot_manager.py b/app/internal/bot_manager.py index e0484da..3ff2531 100644 --- a/app/internal/bot_manager.py +++ b/app/internal/bot_manager.py @@ -44,7 +44,7 @@ class DiscordBotManager: guild_id = before.channel.guild.id LOGGER.info(f"Bot was disconnected from channel in guild {guild_id}. Attempting to reconnect...") try: - await leave_voice_channel(guild_id) + await self.leave_voice_channel(guild_id) except Exception as e: LOGGER.warning(f"Error leaving voice channel: '{e}'") # Attempt to reconnect to the channel after a brief pause