1
0

fix: rate limit skipping

This commit is contained in:
オスカー、 2023-03-22 13:50:54 +00:00 committed by GitHub
parent c1bffa219f
commit e03ee49a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
bot.py
View File

@ -60,9 +60,9 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction):
result = await client.register_role_metadata(records=tuple(rec), force=True)
except Exception as e:
await inter.followup.send(e)
await asyncio.sleep(5)
await asyncio.sleep(10)
else:
await inter.followup.send(result)
await asyncio.sleep(5)
await asyncio.sleep(10)
bot.run(os.getenv("BOT_TOKEN"))