1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

Fix !cancel

This commit is contained in:
Steffo 2018-04-03 20:26:47 +02:00
parent 0e7c638c3f
commit 74e8bc3709

View file

@ -264,7 +264,7 @@ async def on_message(message: discord.Message):
voice_player.resume() voice_player.resume()
await client.send_message(message.channel, f"▶️ Riproduzione ripresa.") await client.send_message(message.channel, f"▶️ Riproduzione ripresa.")
elif message.content.startswith("!cancel"): elif message.content.startswith("!cancel"):
if not len(voice_queue) > 1: if not len(voice_queue) > 0:
await client.send_message(message.channel, f"⚠ Non ci sono video da annullare.") await client.send_message(message.channel, f"⚠ Non ci sono video da annullare.")
return return
voice_queue.pop() voice_queue.pop()