fix: rate limit skipping
This commit is contained in:
parent
c1bffa219f
commit
e03ee49a2b
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -60,9 +60,9 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction):
|
||||||
result = await client.register_role_metadata(records=tuple(rec), force=True)
|
result = await client.register_role_metadata(records=tuple(rec), force=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await inter.followup.send(e)
|
await inter.followup.send(e)
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(10)
|
||||||
else:
|
else:
|
||||||
await inter.followup.send(result)
|
await inter.followup.send(result)
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(10)
|
||||||
|
|
||||||
bot.run(os.getenv("BOT_TOKEN"))
|
bot.run(os.getenv("BOT_TOKEN"))
|
Reference in a new issue