aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rohan <[email protected]>2019-02-17 22:18:13 +0530
committerGravatar Rohan <[email protected]>2019-02-17 22:18:13 +0530
commit19c57bad4ed4546acb5c51ebed7466166acdc5bf (patch)
treefa7636df1b94bbfffd10b1043a0151be7c0ab350
parentChanged the variable name error_message to message (diff)
changed variable name from message to time_remaining
-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 b594c688..47e18a31 100644
--- a/bot/seasons/evergreen/error_handler.py
+++ b/bot/seasons/evergreen/error_handler.py
@@ -44,10 +44,10 @@ class CommandErrorHandler:
)
seconds = error.retry_after
remaining_minutes, remaining_seconds = divmod(seconds, 60)
- message = f'{int(remaining_minutes)} minutes {math.ceil(remaining_seconds)} seconds'
+ time_remaining = f'{int(remaining_minutes)} minutes {math.ceil(remaining_seconds)} seconds'
return await ctx.send(
"This command is on cooldown,"
- f" please retry in {message}."
+ f" please retry in {time_remaining}."
)
if isinstance(error, commands.DisabledCommand):
logging.debug(