From 31894a37b5f599f594e7a4d8a2287501957b62f6 Mon Sep 17 00:00:00 2001 From: electron271 Date: Thu, 21 Mar 2024 21:59:00 +0000 Subject: [PATCH] style fixes by ruff --- tux/events/on_voice_state_update.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tux/events/on_voice_state_update.py b/tux/events/on_voice_state_update.py index ea49ad4..3270bcc 100644 --- a/tux/events/on_voice_state_update.py +++ b/tux/events/on_voice_state_update.py @@ -58,15 +58,15 @@ class OnVoiceStateUpdate(commands.Cog): # if the category is not found, return if category is None: return - + # paranoia check if before.channel.category_id != category.id: return - + # if these are the same, the user is just deafening or muting if before.channel == after.channel: return - + # if the id of the channel is the same as the temporary channel, return # just incase they decide to name the channel starting with [TEMP] if before.channel.id == int(C.TEMPVC_CHANNEL or "0"): @@ -75,7 +75,7 @@ class OnVoiceStateUpdate(commands.Cog): # TODO: Replace this with a database so the user can change the name of the channel if not before.channel.name.startswith("[TEMP]"): return - + # get the number of members in the channel if len(before.channel.members) == 0: await before.channel.delete()