Skip to content

Commit bb00220

Browse files
authored
Feat: Accept multiple timestamp formats in the remindme cmd (#240)
1 parent 1e181de commit bb00220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Reminders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task RemindMe(
3636
[RemainingText, Description("The text to send when the reminder triggers.")] string reminder
3737
)
3838
{
39-
string discordTimestampRegexExp = @"^<t:(\d+):?\w*>$";
39+
string discordTimestampRegexExp = @"(?:<t:)?(\d+)(?::\w*>)?";
4040
Match matchesDiscordTimestamp = Regex.Match(timetoParse, discordTimestampRegexExp);
4141

4242

0 commit comments

Comments
 (0)