aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/resources/tags/customcooldown.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/resources/tags/customcooldown.md b/bot/resources/tags/customcooldown.md
index 4060a9827..3f6db0ec6 100644
--- a/bot/resources/tags/customcooldown.md
+++ b/bot/resources/tags/customcooldown.md
@@ -10,6 +10,8 @@ message_cooldown = commands.CooldownMapping.from_cooldown(1.0, 60.0, commands.Bu
@bot.event
async def on_message(message):
bucket = message_cooldown.get_bucket(message)
+ # update_rate_limit returns a time you need to wait before
+ # trying again
retry_after = bucket.update_rate_limit()
if retry_after:
await message.channel.send("Slow down! You're sending messages too fast")