mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Fix !cancel
This commit is contained in:
parent
0e7c638c3f
commit
74e8bc3709
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue