From 74e8bc3709483a32a541778f88b8e69be21182a2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 3 Apr 2018 20:26:47 +0200 Subject: [PATCH] Fix !cancel --- discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot.py b/discordbot.py index f4a42e2e..947d4b51 100644 --- a/discordbot.py +++ b/discordbot.py @@ -264,7 +264,7 @@ async def on_message(message: discord.Message): voice_player.resume() await client.send_message(message.channel, f"▶️ Riproduzione ripresa.") 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.") return voice_queue.pop()