From 4d0ba2d7e9b7e2c8c020cde5d569f5de98a4c748 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Thu, 16 Jun 2022 15:02:41 -0700 Subject: [PATCH] [Dall-E] Edit even less often for bigger numbers --- dalle/dalle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dalle/dalle.py b/dalle/dalle.py index cc0e867..7b1d552 100644 --- a/dalle/dalle.py +++ b/dalle/dalle.py @@ -39,7 +39,11 @@ class DallE(commands.Cog): while not images: if attempt < 100: attempt += 1 - if attempt % 3 == 0: + if attempt < 10: + divisor = 2 + else: + divisor = 5 + if attempt % divisor == 0: status = f"This will take a very long time. Once a response is acquired, this counter will pause while processing.\n[attempt `{attempt}/100`]" try: await status_msg.edit(content=status)