diff options
| author | 2019-01-01 20:24:00 -0500 | |
|---|---|---|
| committer | 2019-01-01 20:24:00 -0500 | |
| commit | b3d1dc26b9c0c5ee8ffac8fad0a9a39bf6fdedfb (patch) | |
| tree | 804b5d5db74ebd9ba692aef7b894d9bed05dee5c | |
| parent | Merge branch 'master' into defcon-channel-title (diff) | |
Fix timedelta days reference
| -rw-r--r-- | bot/cogs/defcon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/defcon.py b/bot/cogs/defcon.py index def9a70e3..4c043f050 100644 --- a/bot/cogs/defcon.py +++ b/bot/cogs/defcon.py @@ -265,8 +265,8 @@ class Defcon: """ if self.enabled: - day_str = "days" if self.days > 1 else "day" - new_topic = f"{BASE_CHANNEL_TOPIC}\n(Status: Enabled, Threshold: {self.days} {day_str})" + day_str = "days" if self.days.days > 1 else "day" + new_topic = f"{BASE_CHANNEL_TOPIC}\n(Status: Enabled, Threshold: {self.days.days} {day_str})" else: new_topic = f"{BASE_CHANNEL_TOPIC}\n(Status: Disabled)" |