aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-12-12 21:08:08 +1000
committerGravatar scragly <[email protected]>2019-12-12 21:08:08 +1000
commit631c89e84fa233bba30af29df5d9e98793a79a65 (patch)
tree5def97a2bca3c4ec6173df2be4bbaaed043ec136
parentAdd exc_info to log.exception to display traceback. (diff)
Auto-delete channel check error after a period of time.
-rw-r--r--bot/seasons/evergreen/error_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/error_handler.py b/bot/seasons/evergreen/error_handler.py
index 8e7cc8d3..0d8bb0bb 100644
--- a/bot/seasons/evergreen/error_handler.py
+++ b/bot/seasons/evergreen/error_handler.py
@@ -56,7 +56,7 @@ class CommandErrorHandler(commands.Cog):
return
if isinstance(error, InChannelCheckFailure):
- await ctx.send(embed=self.error_embed(str(error), NEGATIVE_REPLIES))
+ await ctx.send(embed=self.error_embed(str(error), NEGATIVE_REPLIES), delete_after=7.5)
return
if isinstance(error, commands.UserInputError):
@@ -73,7 +73,7 @@ class CommandErrorHandler(commands.Cog):
f"This command is on cooldown:\nPlease retry in {mins} minutes {secs} seconds.",
NEGATIVE_REPLIES
)
- await ctx.send(embed=embed)
+ await ctx.send(embed=embed, delete_after=7.5)
return
if isinstance(error, commands.DisabledCommand):