aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/reminders.py
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-09-29 14:24:34 +0200
committerGravatar Akarys42 <[email protected]>2019-09-29 14:24:34 +0200
commit3e798b2ee0c63907583cc07163ef63afb26c102b (patch)
tree571964126b61ca83ac82cb8cf69e3bd03e5c47f9 /bot/cogs/reminders.py
parentMerge 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.py5
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()