diff options
| author | 2020-10-02 16:38:26 +0200 | |
|---|---|---|
| committer | 2020-10-02 16:38:26 +0200 | |
| commit | 10a65fee8b843990a87ab468c924e9f6cd4493d1 (patch) | |
| tree | e739bfce1f7d3faff569bc7b94395660f670d20a | |
| parent | PR #1206 PEPs: move URL link to title (diff) | |
Reminder: no feedback message when no mention
| -rw-r--r-- | bot/exts/utils/reminders.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py index 6806f2889..6fdb0b8ea 100644 --- a/bot/exts/utils/reminders.py +++ b/bot/exts/utils/reminders.py @@ -286,10 +286,11 @@ class Reminders(Cog): now = datetime.utcnow() - timedelta(seconds=1) humanized_delta = humanize_delta(relativedelta(expiration, now)) - mention_string = ( - f"Your reminder will arrive in {humanized_delta} " - f"and will mention {len(mentions)} other(s)!" - ) + mention_string = f"Your reminder will arrive in {humanized_delta}" + + if mentions: + mention_string += f" and will mention {len(mentions)} other(s)" + mention_string += "!" # Confirm to the user that it worked. await self._send_confirmation( |