diff options
| author | 2019-09-29 14:24:34 +0200 | |
|---|---|---|
| committer | 2019-09-29 14:24:34 +0200 | |
| commit | 3e798b2ee0c63907583cc07163ef63afb26c102b (patch) | |
| tree | 571964126b61ca83ac82cb8cf69e3bd03e5c47f9 /bot/cogs/reminders.py | |
| parent | Merge pull request #460 from python-discord/help-fix (diff) | |
Add humanized delta and content to confirmation message
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/reminders.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py index 6e91d2c06..695cd36ae 100644 --- a/bot/cogs/reminders.py +++ b/bot/cogs/reminders.py @@ -170,9 +170,12 @@ class Reminders(Scheduler, Cog): } ) + now = datetime.utcnow() + # Confirm to the user that it worked. await self._send_confirmation( - ctx, on_success="Your reminder has been created successfully!" + ctx, + on_success=f"Your reminder `{content}` will arrive in {humanize_delta(relativedelta(expiration, now))}!" ) loop = asyncio.get_event_loop() |