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