From 939ad3680924071f01d74be8d85ae22fd1ab5181 Mon Sep 17 00:00:00 2001 From: Valerie Date: Wed, 28 May 2025 02:46:35 -0400 Subject: [PATCH] Fix formatting inconsistencies in ExtendedAudio cog by removing unnecessary whitespace in the duration display and message handling logic. This cleanup enhances code readability without altering functionality. --- extendedaudio/extendedaudio.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extendedaudio/extendedaudio.py b/extendedaudio/extendedaudio.py index 2388ea9..3c2d036 100644 --- a/extendedaudio/extendedaudio.py +++ b/extendedaudio/extendedaudio.py @@ -195,7 +195,7 @@ class ExtendedAudio(commands.Cog): return f"{hours}:{minutes % 60:02d}:{seconds % 60:02d}" else: return f"{minutes}:{seconds % 60:02d}" - + @commands.Cog.listener() async def on_red_audio_track_start(self, guild: discord.Guild, track: dict, requester: discord.Member): """Post song information when a new track starts""" @@ -283,12 +283,12 @@ class ExtendedAudio(commands.Cog): if await self.config.guild(guild).clean_old_messages(): channel_id = await self.config.guild(guild).status_channel() if not channel_id: - return - + return + channel = guild.get_channel(channel_id) if not channel: - return - + return + last_message_id = await self.config.guild(guild).last_status_message() if last_message_id: try: