feat(commands/voice): add playing

This commit is contained in:
2025-01-05 16:48:22 -05:00
parent f08b9f0766
commit 6930f964c5
3 changed files with 19 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ class Command(enum.Enum):
LEAVE = "leave"
PAUSE = "pause"
PLAY = "play"
PLAYING = "playing"
PURGE = "purge"
QUEUE = "queue"
RELOAD = "reload"

View File

@@ -199,6 +199,22 @@ async def queue_or_play(message):
)
async def playing(message):
if not command_allowed(message):
return
if message.guild.voice_client.source:
await utils.reply(
message,
f"{'(paused) ' if message.guild.voice_client.is_paused() else ''} {players[message.guild.id].current.format(show_queuer=True)}",
)
else:
await utils.reply(
message,
"nothing is playing!",
)
async def skip(message):
if not command_allowed(message):
return