Skip to content

Commit

Permalink
modified: cogs/remind.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Revulate committed Oct 16, 2024
1 parent 7d37fe3 commit e83abe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cogs/remind.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ async def remind_command(self, ctx: commands.Context, target_identifier: str, *,
created_at = created_at.replace(tzinfo=timezone.utc)

remind_time_delta, message = parse_time(message.split())
remind_time = created_at + remind_time_delta if remind_time_delta else None
if remind_time_delta and isinstance(remind_time_delta, timedelta):
remind_time = created_at + remind_time_delta
else:
remind_time = None

reminder = Reminder(
reminder_id=reminder_id,
Expand Down

0 comments on commit e83abe2

Please sign in to comment.