aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/reminders.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index b54622306..b8dafcd05 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -101,10 +101,13 @@ class Reminders(Scheduler, Cog):
embed.colour = Colour.blurple()
embed.set_author(
icon_url=Icons.remind_blurple,
- name="It has arrived!"
- )
+ 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']}`.\n"
+ f"[Jump back to when you created the reminder]({reminder['jump_url']})")
+ else:
+ embed.description = f"Here's your reminder: `{reminder['content']}`"
if late:
embed.colour = Colour.red()
@@ -167,14 +170,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 will arrive in {humanize_delta(relativedelta(expiration, now))}!"
)
loop = asyncio.get_event_loop()