Fix dockerfile and bot_manager
Some checks failed
Lint / lint (pull_request) Failing after 19s

This commit is contained in:
2025-03-04 21:45:57 -05:00
parent 71af2c83d9
commit 5b3f9bfaba
2 changed files with 2 additions and 2 deletions

View File

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

View File

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