Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Dec 2, 2023
1 parent b1947d0 commit f6bbc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discordgsm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ async def tasks_edit_messages():
# Discord Rate limit: 50 requests per second
async for chunks in to_chunks(tasks, 25):
start = datetime.now().timestamp()
results += await asyncio.gather(*chunks)
results += await asyncio.gather(*chunks, return_exceptions=True)
time_used = datetime.now().timestamp() - start
await asyncio.sleep(max(0, 1 - time_used))

Expand Down

0 comments on commit f6bbc5a

Please sign in to comment.