diff options
author | Parker <contact@pkrm.dev> | 2024-12-03 06:05:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-03 06:05:14 +0000 |
commit | 15e33831639355546b32477a6870eb0a3ac47e24 (patch) | |
tree | a5455e0a8391747c7226a751354b7236c8c5d40b /code/cogs/shuffle.py | |
parent | fcbfe460701316ded25e29356ed1fda42386e5c0 (diff) | |
parent | ce18cd27488d90fbd0aae7319a36a89e9fa85aa7 (diff) |
Merge pull request #10 from PacketParker/dev
Update
Diffstat (limited to 'code/cogs/shuffle.py')
-rw-r--r-- | code/cogs/shuffle.py | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/code/cogs/shuffle.py b/code/cogs/shuffle.py index 5c2f381..78213d6 100644 --- a/code/cogs/shuffle.py +++ b/code/cogs/shuffle.py @@ -4,7 +4,7 @@ from discord import app_commands from discord.ext import commands from cogs.music import Music -from utils.config import BOT_COLOR +from utils.config import create_embed class Shuffle(commands.GroupCog, name="shuffle"): @@ -19,16 +19,9 @@ class Shuffle(commands.GroupCog, name="shuffle"): player.shuffle = True - embed = discord.Embed( - title=f"Shuffle Enabled 🔀", - description=f"All music will now be shuffled.", - color=BOT_COLOR, - ) - embed.set_footer( - text=datetime.datetime.now(datetime.timezone.utc).strftime( - "%Y-%m-%d %H:%M:%S" - ) - + " UTC" + embed = create_embed( + title="Shuffle Enabled 🔀", + description="All music will now be shuffled.", ) await interaction.response.send_message(embed=embed) @@ -40,16 +33,9 @@ class Shuffle(commands.GroupCog, name="shuffle"): player.shuffle = False - embed = discord.Embed( - title=f"Disabled 🔀", - description=f"Music will no longer be shuffled.", - color=BOT_COLOR, - ) - embed.set_footer( - text=datetime.datetime.now(datetime.timezone.utc).strftime( - "%Y-%m-%d %H:%M:%S" - ) - + " UTC" + embed = create_embed( + title="Shuffle Disabled 🔀", + description="Music will no longer be shuffled.", ) await interaction.response.send_message(embed=embed) |