A simplistic take on functional cooldowns.
pip install function-cooldowns
A simplistic example, read more on the docs!
import cooldowns
...
@bot.slash_command(
description="Ping command",
)
@cooldowns.cooldown(1, 15, bucket=cooldowns.SlashBucket.author)
async def ping(interaction: nextcord.Interaction):
await interaction.response.send_message("Pong!")
Find more examples here.
For documentation, please see here.
This implements the leaky bucket algorithm
Want realtime help? Join the discord here.
Want a feature added quickly? Want me to help build your software using this?
Sponsor me here