aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorSkycloudd <51929172+Skycloudd@users.noreply.github.com>2020-09-27 10:34:08 +0000
committerSkycloudd <51929172+Skycloudd@users.noreply.github.com>2020-09-27 10:34:08 +0000
commit6666649bcb48f8251456064b4b28d34e57e2f43e (patch)
tree0ffef5d0b0af4d8fa75cdcb85b3953612f90b3a5 /cogs
parent6b1fd9fd805299aee86905e2026c970cca351db2 (diff)
downloadsteve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.tar
steve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.tar.gz
steve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.tar.bz2
steve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.tar.lz
steve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.tar.xz
steve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.tar.zst
steve-bot-6666649bcb48f8251456064b4b28d34e57e2f43e.zip
add cooldown message
Diffstat (limited to 'cogs')
-rw-r--r--cogs/errorhandler.py2
-rwxr-xr-xcogs/utils.py8
2 files changed, 1 insertions, 9 deletions
diff --git a/cogs/errorhandler.py b/cogs/errorhandler.py
index e3483c8..8533a61 100644
--- a/cogs/errorhandler.py
+++ b/cogs/errorhandler.py
@@ -11,7 +11,7 @@ class Errorhandler(commands.Cog):
return
if isinstance(error, commands.CommandOnCooldown):
- return
+ return await ctx.send(f'{ctx.author.mention}, you have to wait {round(error.retry_after, 2)} seconds before using this again')
raise error
diff --git a/cogs/utils.py b/cogs/utils.py
index 3caca9e..1d3f3a8 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -366,14 +366,6 @@ class Utils(commands.Cog):
"https://aninternettroll.github.io/mcbeVerifierLeaderboard/"
)
- @leaderboard.error
- async def leaderboard_handler(self, ctx, error):
- if isinstance(error, commands.CommandOnCooldown):
- # return
- await ctx.send(
- f"{discord.utils.escape_mentions(ctx.message.author.display_name)}, you have to wait {round(error.retry_after, 2)} seconds before using this again."
- )
-
@commands.cooldown(1, 60, commands.BucketType.guild)
@commands.command()
async def someone(self, ctx):