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.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
This commit is contained in:
parent
d8c4007781
commit
939ad36809
1 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue