aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Nash <[email protected]>2020-06-15 13:18:36 -0400
committerGravatar GitHub <[email protected]>2020-06-15 13:18:36 -0400
commitefd27cf29f726627b9ba630e257a2e3e89d3a286 (patch)
treee092f60d051d6a7ca9b39188c9ba490a171fbfce
parentMerge branch 'master' into feature/cooldown-tag (diff)
Update bot/resources/tags/customcooldown.md
Co-authored-by: Mark <[email protected]>
-rw-r--r--bot/resources/tags/customcooldown.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/resources/tags/customcooldown.md b/bot/resources/tags/customcooldown.md
index e877e4dae..ac7e70aee 100644
--- a/bot/resources/tags/customcooldown.md
+++ b/bot/resources/tags/customcooldown.md
@@ -10,11 +10,9 @@ 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")
+ await message.channel.send(f"Slow down! Try again in {retry_after} seconds.")
else:
await message.channel.send("Not ratelimited!")
```