Remove unneeded checks/messages

This commit is contained in:
Parker M. 2024-11-29 00:27:38 -06:00
parent 33493b7b4e
commit d34726947d
Signed by: parker
GPG Key ID: 505ED36FC12B5D5E
2 changed files with 6 additions and 39 deletions

View File

@ -17,20 +17,11 @@ class Repeat(commands.GroupCog, name="repeat"):
"Turn song/queue repetition off"
player = self.bot.lavalink.player_manager.get(interaction.guild.id)
if player.loop == 0:
embed = create_embed(
title="Repeating Already Off",
description="Music repetition is already turned off.",
)
return await interaction.response.send_message(
embed=embed, ephemeral=True
)
player.loop = 0
embed = create_embed(
title="Repeating Off",
description="Music will no longer be repeated.",
description="Music will not be repeated.",
)
await interaction.response.send_message(embed=embed)
@ -40,16 +31,8 @@ class Repeat(commands.GroupCog, name="repeat"):
"Forever repeat that song that is currently playing"
player = self.bot.lavalink.player_manager.get(interaction.guild.id)
if player.loop == 1:
embed = create_embed(
title="Repeating Already On",
description="The current song is already being repeated.",
)
return await interaction.response.send_message(
embed=embed, ephemeral=True
)
player.loop = 1
embed = create_embed(
title="Repeating Current Song 🔁",
description=(
@ -65,16 +48,8 @@ class Repeat(commands.GroupCog, name="repeat"):
"Continuously repeat the queue once it reaches the end"
player = self.bot.lavalink.player_manager.get(interaction.guild.id)
if player.loop == 2:
embed = create_embed(
title="Repeating Already On",
description="The queue is already being repeated.",
)
return await interaction.response.send_message(
embed=embed, ephemeral=True
)
player.loop = 2
embed = create_embed(
title="Repeating Queue 🔂",
description=(

14
test.py
View File

@ -1,11 +1,3 @@
import datetime
now = datetime.datetime.now(datetime.timezone.utc).strftime(
"%Y-%m-%d %H:%M:%S"
)
import time
print(now)
time.sleep(2)
print(now)
while not Exception:
print("Test")
Exception