aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/reminders.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 6e91d2c06..4a470a640 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -100,9 +100,11 @@ class Reminders(Scheduler, Cog):
embed.set_author(
icon_url=Icons.remind_blurple,
name="It has arrived!"
- )
-
- embed.description = f"Here's your reminder: `{reminder['content']}`"
+
+ if "jump_url" in reminder: # keep backward compatibility
+ embed.description = f"Here's your reminder: `{reminder['content']}`. Jump back when you created the reminder : {jump_url}"
+ else:
+ embed.description = f"Here's your reminder: `{reminder['content']}`"
if late:
embed.colour = Colour.red()
@@ -165,14 +167,18 @@ class Reminders(Scheduler, Cog):
json={
'author': ctx.author.id,
'channel_id': ctx.message.channel.id,
+ 'jump_url': ctx.message.jump_url,
'content': content,
'expiration': expiration.isoformat()
}
)
+ 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()