[Reminder] Allow footer and title modification

Module will be more more flexible
This commit is contained in:
Harsha Raghu
2022-01-18 21:12:48 +05:30
parent c01de167f3
commit 19816198b0
4 changed files with 12 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ class Reminder:
# Build the message embed
embed = discord.Embed(
title="You asked me to remind you!",
title="You asked me to remind you!" if self.data.title is None else self.data.title,
colour=discord.Colour.orange(),
description=self.data.content,
timestamp=datetime.datetime.utcnow()
@@ -167,6 +167,9 @@ class Reminder:
)
)
if self.data.footer:
embed.set_footer(text=self.data.footer)
# Update the reminder data, and reschedule if required
if self.data.interval:
next_time = self.data.remind_at + datetime.timedelta(seconds=self.data.interval)