Skip to content

Commit

Permalink
Increase sleep duration between thread archivals due to continued rat…
Browse files Browse the repository at this point in the history
…elimiting
  • Loading branch information
EthanC committed Jul 11, 2024
1 parent ebe1ffc commit 4985a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ async def TaskArchiveThreads(client: GatewayClient) -> None:
logger.success(
f"Archived thread {title} due to maximum lifetime of {lifetime:,}s exceeded"
)
logger.trace("Sleeping 0.25s to avoid ratelimits...")
logger.trace("Sleeping 0.5s to avoid ratelimits...")

await asyncio.sleep(0.25)
await asyncio.sleep(0.5)

logger.info("Completed recurring task to archive threads")

0 comments on commit 4985a47

Please sign in to comment.