Skip to content

Commit

Permalink
Feat: Accept multiple timestamp formats in the remindme cmd (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
sthivaios authored Nov 4, 2024
1 parent 1e181de commit bb00220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Reminders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task RemindMe(
[RemainingText, Description("The text to send when the reminder triggers.")] string reminder
)
{
string discordTimestampRegexExp = @"^<t:(\d+):?\w*>$";
string discordTimestampRegexExp = @"(?:<t:)?(\d+)(?::\w*>)?";
Match matchesDiscordTimestamp = Regex.Match(timetoParse, discordTimestampRegexExp);


Expand Down

0 comments on commit bb00220

Please sign in to comment.