aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/resume.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-11-29 01:36:06 -0600
committerParker <contact@pkrm.dev>2024-11-29 01:36:06 -0600
commit4e8030eca4b1f4028268683ccfc7b481b1608dde (patch)
treed208e1c582733bd82993715b9cbc9266aca5390c /code/cogs/resume.py
parente2916fb0aaf5ae7c6306feb7bc13405aabb29ae6 (diff)
Largely embed wording changes + other small tweaks + combine pause commands
Diffstat (limited to 'code/cogs/resume.py')
-rw-r--r--code/cogs/resume.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/code/cogs/resume.py b/code/cogs/resume.py
deleted file mode 100644
index 6297404..0000000
--- a/code/cogs/resume.py
+++ /dev/null
@@ -1,33 +0,0 @@
-import discord
-import datetime
-from discord import app_commands
-from discord.ext import commands
-from cogs.music import Music
-
-from utils.config import create_embed
-
-
-class Resume(commands.Cog):
- def __init__(self, bot):
- self.bot = bot
-
- @app_commands.command()
- @app_commands.check(Music.create_player)
- async def resume(self, interaction: discord.Interaction):
- "Resumes the paused song"
- player = self.bot.lavalink.player_manager.get(interaction.guild.id)
-
- await player.set_pause(pause=False)
- embed = create_embed(
- title=f"Music Now Resumed ⏯️",
- description=(
- f"**[{player.current.title}]({player.current.uri})**\n\nQueued"
- f" by: {player.current.requester.mention}"
- ),
- thumbnail=player.current.artwork_url,
- )
- await interaction.response.send_message(embed=embed)
-
-
-async def setup(bot):
- await bot.add_cog(Resume(bot))