diff options
| -rw-r--r-- | bot/cogs/reminders.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py index 6e91d2c06..27954d10e 100644 --- a/bot/cogs/reminders.py +++ b/bot/cogs/reminders.py @@ -99,10 +99,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']}`." + f"Jump back when you created the reminder : {reminder['jump_url']}") + else: + embed.description = f"Here's your reminder: `{reminder['content']}`" if late: embed.colour = Colour.red() @@ -165,14 +168,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() |