[Dall-E] Edit even less often for bigger numbers
This commit is contained in:
@@ -39,7 +39,11 @@ class DallE(commands.Cog):
|
|||||||
while not images:
|
while not images:
|
||||||
if attempt < 100:
|
if attempt < 100:
|
||||||
attempt += 1
|
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`]"
|
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:
|
try:
|
||||||
await status_msg.edit(content=status)
|
await status_msg.edit(content=status)
|
||||||
|
|||||||
Reference in New Issue
Block a user