diff options
author | 2019-02-17 21:16:54 +0530 | |
---|---|---|
committer | 2019-02-17 21:16:54 +0530 | |
commit | 984240c28f1520470e43deeb4c2629b6763eadda (patch) | |
tree | c561deab6f576882039d3df743fb8f834c00c318 /bot | |
parent | I did the following changes: (diff) |
Changed the variable name error_message to message
Diffstat (limited to 'bot')
-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 c09a019e..b594c688 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)
- error_message = f'{int(remaining_minutes)} minutes {math.ceil(remaining_seconds)} seconds'
+ message = f'{int(remaining_minutes)} minutes {math.ceil(remaining_seconds)} seconds'
return await ctx.send(
"This command is on cooldown,"
- f" please retry in {error_message}."
+ f" please retry in {message}."
)
if isinstance(error, commands.DisabledCommand):
logging.debug(
|