From c21175622a4398ce6d8e349fdcaecca0e059eb20 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 30 Nov 2024 14:17:29 -0500 Subject: [PATCH] Fix retry --- newbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newbot.py b/newbot.py index 156e692..500f0ea 100644 --- a/newbot.py +++ b/newbot.py @@ -129,7 +129,7 @@ def download_video(index): except Exception: print("handling youtube exception") global failures - if retries % 2 == 0: + if retries % 2 == 1: queue.pop(index) if not (os.getenv("PERMANENT_MAX_QUEUE","FALSE") == "TRUE"): user_queue.pop(index) @@ -367,7 +367,7 @@ async def toggleplayback(inter: disnake.AppCmdInter): @bot.slash_command( name="skip", - description="skips the current video", + description="skips the current video, do not run this command multiple times", default_member_permissions=disnake.Permissions(8192), ) async def skip(inter: disnake.AppCmdInter):