diff options
author | 2019-02-17 22:18:13 +0530 | |
---|---|---|
committer | 2019-02-17 22:18:13 +0530 | |
commit | 19c57bad4ed4546acb5c51ebed7466166acdc5bf (patch) | |
tree | fa7636df1b94bbfffd10b1043a0151be7c0ab350 | |
parent | Changed the variable name error_message to message (diff) |
changed variable name from message to time_remaining
-rw-r--r-- | bot/seasons/evergreen/error_handler.py | 4 |
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(
|