feat(commands/voice): send message when song plays

This commit is contained in:
Ryan 2024-12-31 21:45:28 -05:00
parent 99f5d3d338
commit 64919008a5
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -138,11 +138,9 @@ async def queue_or_play(message):
not message.guild.voice_client.is_playing() not message.guild.voice_client.is_playing()
and not message.guild.voice_client.is_paused() and not message.guild.voice_client.is_paused()
): ):
await utils.reply(message, f"**0.** {queued.format()}")
play_next(message) play_next(message)
elif args.now: elif args.now:
message.guild.voice_client.stop() message.guild.voice_client.stop()
await utils.reply(message, f"**0.** {queued.format()}")
else: else:
await utils.reply( await utils.reply(
message, message,
@ -293,6 +291,7 @@ def play_next(message, once=False):
message.guild.voice_client.play( message.guild.voice_client.play(
queued.player, after=lambda e: play_after_callback(e, message, once) queued.player, after=lambda e: play_after_callback(e, message, once)
) )
client.loop.create_task(message.channel.send(f"**0.** {queued.format()}"))
async def ensure_joined(message): async def ensure_joined(message):