aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shirayuki Nekomata <[email protected]>2019-10-21 13:46:48 +0700
committerGravatar Shirayuki Nekomata <[email protected]>2019-10-21 13:46:48 +0700
commit3828a6dd335fe3d68277b30e89c21cc1a1051755 (patch)
tree4f9db15a7da6efffe7e74a71f1d0e9b3c26fefe8
parentUpdate defcon.py (diff)
Fixing formatting for timedelta.
- Now it will only show the amount of days. - Quality of Life: Also show `day` instead of `days` when it's just 1 day.
-rw-r--r--bot/cogs/defcon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/defcon.py b/bot/cogs/defcon.py
index ec93d422d..bedd70c86 100644
--- a/bot/cogs/defcon.py
+++ b/bot/cogs/defcon.py
@@ -205,8 +205,8 @@ class Defcon(Cog):
msg = f"{Emojis.defcon_disabled} DEFCON disabled.\n\n"
elif action is Action.UPDATED:
msg = (
- f"{Emojis.defcon_updated} DEFCON days updated; accounts must be {self.days} "
- "days old to join the server.\n\n"
+ f"{Emojis.defcon_updated} DEFCON days updated; accounts must be {self.days.days} "
+ f"day{'s' if self.days.days > 1 else ''} old to join the server.\n\n"
)
if e: