Skip to content

Commit

Permalink
src/office_hours/channels.py: Reduce closing time song to 50% audio
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Nov 17, 2024
1 parent 133ff3f commit bf8d001
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/office_hours/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ async def play(self, voice_channel: discord.VoiceChannel, file_path: str):
logger.info(f"Connected to {voice_channel.name} for time control reminder.")
# Time delay to let people quiet down
await asyncio.sleep(1)
source = discord.FFmpegPCMAudio(file_path)
source = discord.PCMVolumeTransformer(
discord.FFmpegPCMAudio(file_path),
volume=0.5,
)
if not voice_client.is_playing():
voice_client.play(
source,
Expand Down

0 comments on commit bf8d001

Please sign in to comment.